Part Number Hot Search : 
12320 IME02GR BUW32 BZQ55C22 3362X503 100100 700ETT ADCMP565
Product Description
Full Text Search
 

To Download S1D13705F00A200 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  s1d13705 embedded memory lcd controller s1d13705 technical manual document no. x27a-q-001-04 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 technical manual x27a-q-001-04 issue date: 01/04/18 this page left blank
epson research and development page 3 vancouver design center technical manual s1d13705 issue date: 01/04/18 x27a-q-001-04 customer support information comprehensive support tools seiko epson corp. provides to the system designer and computer oem manufacturer a complete set of resources and tools for the development of graphics systems. evaluation / demonstration board ? assembled and fully tested graphics evaluation board with installation guide and sche- matics.  to borrow an evaluation board, please contact your local seiko epson corp. sales repre- sentative. chip documentation  technical manual includes data sheet, application notes, and programmer?s refer- ence. software  oem utilities.  user utilities.  evaluation software.  to obtain these programs, contact application engineering support. application engi neering support engineering and sales support is provided by: japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 4 epson research and development vancouver design center s1d13705 technical manual x27a-q-001-04 issue date: 01/04/18 this page left blank
x27a-c-001-04 1 graphics s1d13705 energy saving epson february 2001 s1d13705 embedded memory lcd controller the s1d13705 is a color/monochrome lcd graphics controller with an embedded 80k byte sram display buffer. the high integration of the s1d13705 provides a low cost, low power, single chip solution to meet the requirements of embedded markets such as office automation equipment, mobile commu- nications devices, and palm-size pcs where board size and battery life are major concerns. products requiring a ?portrait? display can take advantage of the hardware portrait mode feature of the s1d13705. virtual and split screen are just some of the display modes supported. while focusing on devices targeted by the microsoft windows ce operating system, the s1d13705?s impartiality to cpu type or operating system makes it an ideal display solution for a wide variety of applications. features system block diagram ? embedded 80k byte sram display buffer.  direct support for the following cpu?s: hitachi sh-3. hitachi sh-4. motorola m68xxx. mpu bus interface with programmable ready.  resolutions up to: 640x480 at a color depth of 2 bpp. 640x240 at a color depth of 4 bpp. 320x240 at a color depth of 8 bpp.  up to 256 simultaneous colors from a possible 4096 colors on passive lcd panels and active matrix tft/d-tfd lcd panels.  register level support for el panels.  hardware portrait mode  split screen display  virtual display support  lcd power-down sequencing. s1d13705 flat panel data and cpu control signals digital out
x27a-c-001-04 2 graphics s1d13705 description memory interface  embedded 80k byte sram display buffer. cpu interface  direct support for: hitachi sh-3. hitachi sh-4. motorola m68xxx. mpu bus interface with programmable ready.  cpu write buffer. display support  4/8-bit monochrome lcd interface.  4/8-bit color lcd interface.  single-panel, single-drive passive displays.  dual-panel, dual-drive passive displays.  active matrix tft / d-tfd interface.  example resolutions: 640x480 at a color depth of 2 bpp. 640x240 at a color depth of 4 bpp. 320x240 at a color depth of 8 bpp. clock source  single clock input for both pixel and memory clocks.  the s1d13705 clock source can be internally divided down for a higher frequency clock input.  dynamic switching of memory clocks in portrait mode. display modes  1/2/4/8 bit-per-pixel (bpp) support on lcd.  up to 16 shades of gray using frm on monochrome passive lcd panels.  up to 256 simultaneous colors from a possible 4096 colors on passive stn and active matrix tft/d-tfd lcd panels.  split screen display: allows two different images to be simultaneously viewed on the same display.  virtual display support: displays images larger than the display size through the use of panning.  double buffering/multi-pages: provides smooth animation and instantaneous screen update.  hardware portrait mode: direct hardware 90 rotation of display image for portrait mode display. power down modes  software suspend mode.  lcd power-down sequencing. operating voltage  core vdd 2.7 to 3.6 volts; io vdd 2.7 to 5.5 volts. package  80-pin qfp14. for system integration services for windows? ce contact: epson research & development, inc. suite #320 - 11120 horseshoe way richmond, b.c., canada v7a 5h7 tel: (604) 275-5151 fax: (604) 275-2167 email: wince@erd.epson.com http://www.erd.epson.com contact your sales representative for these comprehensive design tools:  s1d13705 technical manual  s5u13705 evaluation boards  windows ? ce display driver  cpu independent software utilities japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com copyright ? 2001 epson research and development, inc. all rights reserved. vdc information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/ epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the con tents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or inte rnational patent laws. epson is a registered trademark of seiko epson corporation. microsoft, windows, and the windows ce logo are registered trademar ks of microsoft corporation.
s1d13705 embedded memory lcd controller hardware functional specification document number: x27a-a-001-10 copyright ? 1999, 2002 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 this page left blank
epson research and development page 3 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1 scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 overview description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 integrated frame buffer . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 cpu interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 display support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 display modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.6 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.7 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 typical system implementation diagrams . . . . . . . . . . . . . . . . . . . . . . 12 4 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 functional block descriptions . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.1 host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.2 memory controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.3 sequence controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.4 look-up table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.5 lcd interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.6 power save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5 pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.1 pinout diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.1 host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.2 lcd interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.2.3 clock input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2.4 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2.5 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3 summary of configuration options . . . . . . . . . . . . . . . . . . . . . . 22 5.4 host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . 22 5.5 lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . 23 6 d.c. characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7 a.c. characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.1 bus interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.1.1 sh-4 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 7.1.2 sh-3 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 7.1.3 motorola mc68k #1 interface timing . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1.4 motorola mc68k #2 interface timing . . . . . . . . . . . . . . . . . . . . . . . . 31
page 4 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.1.5 generic #1 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.1.6 generic #2 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.2 clock input requirements . . . . . . . . . . . . . . . . . . . . . . . . . .34 7.3 display interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 7.3.1 power on/reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.3.2 power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.3.3 single monochrome 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . 38 7.3.4 single monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . 40 7.3.5 single color 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 7.3.6 single color 8-bit panel timing (format 1) . . . . . . . . . . . . . . . . . . . . . 44 7.3.7 single color 8-bit panel timing (format 2) . . . . . . . . . . . . . . . . . . . . . 46 7.3.8 dual monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . 48 7.3.9 dual color 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 7.3.10 9/12-bit tft/d-tfd panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . 52 8 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 8.1 register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 8.2 register descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 9 frame rate calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 10 display data formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 0 11 look-up table architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 11.1 monochrome modes . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 11.2 color modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 12 swivelview? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 12.1 default swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . .77 12.1.1 how to set up default swivelview mode . . . . . . . . . . . . . . . . . . . . . . 78 12.2 alternate swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . .79 12.2.1 how to set up alternate swivelview mode . . . . . . . . . . . . . . . . . . . . . 80 12.3 comparison between default and alternate swivelview modes . . . . . . . . . . .81 12.4 swivelview mode limitations . . . . . . . . . . . . . . . . . . . . . . . .81 13 power save modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 2 13.1 software power save mode . . . . . . . . . . . . . . . . . . . . . . . . .82 13.2 hardware power save mode . . . . . . . . . . . . . . . . . . . . . . . . .82 13.3 power save mode function summary . . . . . . . . . . . . . . . . . . . . .83 13.4 panel power up/down sequence . . . . . . . . . . . . . . . . . . . . . . .8 3 13.5 turning off bclk between accesses . . . . . . . . . . . . . . . . . . . . .84 13.6 clock requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 14 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 15 sales and technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
epson research and development page 5 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 list of tables table 5-1: summary of power on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5-2: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5-3: lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 6-1: absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6-2: recommended operating conditions for core vdd = 3.3v 10% . . . . . . . . . . . 24 table 6-3: input specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6-4: output specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 7-1: sh-4 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 7-2: sh-3 bus timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 7-3: mc68k #1 bus timing (mc68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 7-4: mc68k #2 timing (mc68030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 7-5: generic #1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 7-6: generic #2 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 7-7: clock input requirements for clki . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 7-8: clock input requirements for bclk . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 table 7-9: lcd panel power on/reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6 table 7-10: power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 7-11: single monochrome 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 39 table 7-12: single monochrome 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 41 table 7-13: single color 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 7-14: single color 8-bit panel a.c. timing (format 1) . . . . . . . . . . . . . . . . . . . . . 45 table 7-15: single color 8-bit panel a.c. timing (format 2) . . . . . . . . . . . . . . . . . . . . . 47 table 7-16: dual monochrome 8-bit panel a.c. timing. . . . . . . . . . . . . . . . . . . . . . . . 49 table 7-17: dual color 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 7-18: tft/d-tfd a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 8-1: panel data format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 8-2: gray scale/color mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 8-3: high performance selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 8-4: inverse video mode select options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 8-5: hardware power save/gpio0 operation . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 8-6: software power save mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9 table 8-7: selection of swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 8-8: selection of pclk and mclk in swivelview mode . . . . . . . . . . . . . . . . . . . 68 table 12-1: default and alternate swivelview mode comparison . . . . . . . . . . . . . . . . . . 81 table 13-1: power save mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 13-2: software power save mode summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 13-3: hardware power save mode summary . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 13-4: power save mode function summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 13-5: s1d13705 internal clock requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 85
page 6 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 this page left blank
epson research and development page 7 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 list of figures figure 3-1: typical system diagram (sh-4 bus). . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 figure 3-2: typical system diagram (sh-3 bus). . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 figure 3-3: typical system diagram (m68k #1 bus) . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-4: typical system diagram (m68k #2 bus) . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-5: typical system diagram (generic #1 bus) . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 3-6: typical system diagram (generic #2 bus - e.g. isa bus). . . . . . . . . . . . . . . . . 14 figure 4-1: system block diagram showing data paths . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 5-1: pinout diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 7-1: sh-4 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 7-2: sh-3 bus timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 7-3: mc68k #1 bus timing (mc68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 7-4: mc68k #2 timing (mc68030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 figure 7-5: generic #1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 7-6: generic #2 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 7-7: clock input requirements for clki . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 7-8: clock input requirements for bclk . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 7-9: lcd panel power on/reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 7-10: power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 7-11: single monochrome 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 7-12: single monochrome 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 39 figure 7-13: single monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . 40 figure 7-14: single monochrome 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 41 figure 7-15: single color 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 7-16: single color 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . .43 figure 7-17: single color 8-bit panel timing (format 1) . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 7-18: single color 8-bit panel a.c. timing (format 1) . . . . . . . . . . . . . . . . . . . . . 45 figure 7-19: single color 8-bit panel timing (format 2) . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 7-20: single color 8-bit panel a.c. timing (format 2) . . . . . . . . . . . . . . . . . . . . . 47 figure 7-21: dual monochrome 8-bit panel timing. . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 7-22: dual monochrome 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 7-23: dual color 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 figure 7-24: dual color 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 figure 7-25: 12-bit tft/d-tfd panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 figure 7-26: tft/d-tfd a.c. timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 figure 8-1: screen-register relationship, split screen. . . . . . . . . . . . . . . . . . . . . . . . . 6 5 figure 10-1: 1/2/4/8 bit-per-pixel display data memory organization. . . . . . . . . . . . . . . . . 70 figure 11-1: 1 bit-per-pixel monochrome mode data output path . . . . . . . . . . . . . . . . . . . 71
page 8 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 figure 11-2: 2 bit-per-pixel monochrome mode data output path . . . . . . . . . . . . . . . . . . .71 figure 11-3: 4 bit-per-pixel monochrome mode data output path . . . . . . . . . . . . . . . . . . .72 figure 11-4: 1 bit-per-pixel color mode data output path . . . . . . . . . . . . . . . . . . . . . . .73 figure 11-5: 2 bit-per-pixel color mode data output path . . . . . . . . . . . . . . . . . . . . . . .74 figure 11-6: 4 bit-per-pixel color mode data output path . . . . . . . . . . . . . . . . . . . . . . .75 figure 11-7: 8 bit-per-pixel color mode data output path . . . . . . . . . . . . . . . . . . . . . . .76 figure 12-1: relationship between the screen image and the image refreshed by s1d13705 in default mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 figure 12-2: relationship between the screen image and the image refreshed by s1d13705 in alternate mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 figure 13-1: panel on/off sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 figure 14-1: mechanical drawing qfp14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
epson research and development page 9 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 1 introduction 1.1 scope this is the hardware functional specification for the s1d13705 embedded memory lcd controller chip. included in this document are timing diagrams, ac and dc character- istics, register descriptions, and power management descriptions. this document is intended for two audiences: video subsystem designers and software developers. this document is updated as appropriate. please check for the latest revision of this document before beginning any development. the latest revision can be downloaded at www.erd.epson.com. we appreciate your comments on our documentation. please contact us via email at documentation@erd.epson.com. 1.2 overview description the s1d13705 is a color / monochrome lcd graphics controller with an embedded 80k byte sram display buffer. the high integration of the s1d13705 provides a low cost, low power, single chip solution to meet the requirements of embedded markets such as office automation equipment, mobile communications devices, and hand-held pcs where board size and battery life are major concerns. products requiring a ?portrait? display can take advantage of the swivelview? mode feature of the s1d13705. virtual and split screen are just some of the display modes supported. the above features, combined with the operating system independence of the s1d13705, make it the ideal solution for a wide variety of applications.
page 10 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 2 features 2.1 integrated frame buffer  embedded 80k byte sram display buffer. 2.2 cpu interface  direct support of the following interfaces: hitachi sh-3. hitachi sh-4. motorola m68k. mpu bus interface using wait# signal.  direct memory mapping of internal registers.  single level cpu write buffer.  registers are mapped into upper 32 bytes of 128k byte address space.  the complete 80k byte display buffer is directly and contiguously available through the 17-bit address bus. 2.3 display support  4/8-bit monochrome lcd interface.  4/8-bit color lcd interface.  single-panel, single-drive passive displays.  dual-panel, dual-drive passive displays.  active matrix tft / d-tfd interface  register level support for el panels.  example resolutions: 640x480 at a color depth of 2 bpp 640x240 at a color depth of 4 bpp 320x240 at a color depth of 8 bpp
epson research and development page 11 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 2.4 display modes  swivelview?: direct 90 hardware rotation of display image for portrait mode display  1/2/4 bit-per-pixel (bpp), 2/4/16-level grayscale display.  1/2/4/8 bit-per-pixel, 2/4/16/256-level color display.  up to 16 shades of gray by frm on monochrome passive lcd panels; a 256x4 look- up table is used to map 1/2/4 bpp modes into these shades.  256 simultaneous of 4096 colors on color passive and active matrix lcd panels; three 256x4 look-up tables are used to map 1/2/4/8 bpp modes into these colors.  split screen display for all landscape panel modes allows two different images to be simultaneously displayed.  virtual display support (displays images larger than the panel size through the use of panning). 2.5 clock source  maximum operating clock (clk) frequency of 25mhz.  operating clock (clk) is derived from clki input. clk = clki or clk = clki/2  pixel clock (pclk) and memory clock (mclk) are derived from clk. 2.6 miscellaneous  hardware/software video invert.  software power save mode.  hardware power save mode.  lcd power-down sequencing.  5 general purpose input/output pins are available.  gpio0 is available if hardware power save is not required.  gpio[4:1] are available if upper lcd data pins (fpdat[11:8]) are not required for tft/d-tfd support or hardware inverse video.  core operates from 2.7 volts to 3.6 volts.  io operates from the core voltage up to 5.5 volts. 2.7 package  80 pin qfp14 package.
page 12 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 3 typical system implementation diagrams . figure 3-1: typical system diagram (sh-4 bus) . figure 3-2: typical system diagram (sh-3 bus) s1d13705 fpframe fpshift fpline drdy fpdat[7:0] clki oscillator fpframe fpshift fpline mod d[7:0] 8-bit lcd display sh-4 bus reset# we0# d[15:0] bs# rd/wr# rd# rdy# a[16:0] ckio we0# rd/wr# ab[16:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# csn# we1# lcdpwr s1d13705 fpframe fpshift fpline drdy fpdat[7:4] clki oscillator fpframe fpshift fpline mod d[3:0] 4-bit lcd display sh-3 bus reset# we0# d[15:0] bs# rd/wr# rd# wait# a[16:0] ckio we0# rd/wr# ab[16:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# csn# we1# lcdpwr
epson research and development page 13 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 . figure 3-3: typical system diagram (m68k #1 bus) . figure 3-4: typical system diagram (m68k #2 bus) s1d13705 fpframe fpshift fpline drdy fpdat[7:4] clki oscillator fpframe fpshift fpline mod d[3:0] 4-bit lcd display mc68000 bus reset# lds# d[15:0] as# r/w# dtack# a[16:1] clk ab0 rd/wr# ab[16:1] db[15:0] we1# bs# cs# bclk wait# reset# a[23:17] fc0, fc1, fc2 decoder uds# lcdpwr s1d13705 fpframe fpshift fpline drdy fpdat[7:0] clki oscillator fpframe fpshift fpline mod d[7:0] 8-bit lcd display mc68030 bus reset# siz0 d[31:16] as# r/w# siz1 dsack1# a[16:0] clk we0# rd/wr# ab[16:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# a[31:17] fc0, fc1, fc2 decoder ds# lcdpwr
page 14 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 . figure 3-5: typical system diagram (generic #1 bus) . figure 3-6: typical system diagram (generic #2 bus - e.g. isa bus) s1d13705 fpframe fpshift fpline drdy fpdat[11:0] clki oscillator fpframe fpshift fpline drdy d[11:0] 12-bit tft display generic #1 bus reset# d[15:0] rd0# wait# a[16:0] bclk rd/wr# ab[16:0] db[15:0] we1# rd cs# bclk wait# reset# csn# we1# lcdpwr we0# we0# bs# rd1# s1d13705 fpframe fpshift fpline drdy fpdat[8:0] clki oscillator fpframe fpshift fpline drdy d[8:0] 9-bit tft display isa bus reset sd[15:0] smemr# iochrdy sa[16:0] bclk ab[16:0] db[15:0] we1# rd# bclk wait# reset# lcdpwr we0# smemw# bs# decoder cs# sa[19:17] refresh sbhe#
epson research and development page 15 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 4 functional block diagram figure 4-1: system block diagram showing data paths 4.1 functional block descriptions 4.1.1 host interface the host interface provides the means for the cpu/mpu to communicate with the display buffer and internal registers. 4.1.2 memory controller the memory controller arbitrates between cpu accesses and display refresh accesses. it also generates the necessary signals to control the sram frame buffer. 4.1.3 sequence controller the sequence controller controls data flow from the memory controller through the look- up table and to the lcd interface. it also generates memory addresses for display refresh accesses. lcd memory controller 40k x 16-bit sram lcd clocks power save register sequence controller look-up i/f generic mpu mc68k sh-3 host i/f bus clock memory clock pixel clock table sh-4
page 16 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 4.1.4 look-up table the look-up table contains three 256x4 look-up tables or palettes, one for each primary color. in monochrome mode only the green look-up table is used. 4.1.5 lcd interface the lcd interface performs frame rate modulation for passive lcd panels. it also generates the correct data format and timing control signals for various lcd and tft/d-tfd panels. 4.1.6 power save power save contains the power save mode circuitry.
epson research and development page 17 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 5 pins 5.1 pinout diagram figure 5-1: pinout diagram note package type: 80 pin surface mount qfp14 1234567891011121314151617181920 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 21 22 23 24 25 26 34 35 36 37 38 39 27 28 29 30 31 32 33 40 s1d13705 iovdd db6 db5 db4 db3 db2 db0 db1 corevdd db8 drdy fpdat7 corevdd gpio0 ab3 vss ab4 ab5 ab6 ab11 ab14 fpdat11 fpdat10 fpdat9 vss fpshift iovdd fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpline fpframe vss cnf2 db12 db9 db10 db11 db13 db14 db15 wait# vss rd/wr# we1# we0# rd# bs# cs# reset# ab0 ab1 ab2 corevdd corevdd lcdpwr ab9 ab10 vss ab8 vss fpdat8 fpdat6 testen cnf3 cnf1 cnf0 clki iovdd ab15 ab12 bclk ab13 vss ab7 ab16 db7
page 18 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 5.2 pin description key: 5.2.1 host interface i=input o=output io = bi-directional (input/output) p=power pin c = cmos level input cs = cmos level schmitt input cox = cmos output driver, x denotes driver type (see i ol /i oh in table 6-4: ?output specifications,? on page 25) tsx = tri-state cmos output driver, x denotes driver type (see i ol /i oh in table 6-4: ?output specifications,? on page 25) cnx = cmos low-noise output driver, x denotes driver type (see i ol /i oh in table 6-4: ?output specifications,? on page 25) test = cmos level test input with pull down resistor pin namestypepin #cell reset# state description ab0 i 70 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs system address bit 0 (a0).  for mc68k #1, this pin inputs the lower data strobe (lds#).  for mc68k #2, this pin inputs system address bit 0 (a0).  for generic #1, this pin inputs system address bit 0 (a0).  for generic #2, this pin inputs system address bit 0 (a0). see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. ab[16:1] i 45, 53, 54, 55, 56, 57, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69 c input these pins input the system address bits 16 through 1 (a[16:1]). db[15:0] io 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19 c/ts2 hi-z these pins have multiple functions.  for sh-3/sh-4 mode, these pins are connected to [d15:0].  for mc68k #1, these pins are connected to d[15:0].  for mc68k #2, these pins are connected to d[31:16] for a 32-bit device (e.g. mc68030) or d[15:0] for a 16-bit device (e.g. mc68340).  for generic #1, these pins are connected to d[15:0].  for generic #2, these pins are connected to d[15:0]. see table 5-2: ?host bus interface pin mapping,? on page 22 for summary.
epson research and development page 19 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 we0# i 77 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs the write enable signal for the lower data byte (we0#).  for mc68k #1, this pin must be tied to io v dd  for mc68k #2, this pin inputs the bus size bit 0 (siz0).  for generic #1, this pin inputs the write enable signal for the lower data byte (we0#).  for generic #2, this pin inputs the write enable signal (we#) see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. we1# i 78 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs the write enable signal for the upper data byte (we1#).  for mc68k #1, this pin inputs the upper data strobe (uds#).  for mc68k #2, this pin inputs the data strobe (ds#).  for generic #1, this pin inputs the write enable signal for the upper data byte (we1#).  for generic #2, this pin inputs the byte enable signal for the high data byte (bhe#). see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. cs# i 74 c input this pin inputs the chip select signal. bclk i 71 c input this pin inputs the system bus clock. bs# i 75 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs the bus start signal (bs#).  for mc68k #1, this pin inputs the address strobe (as#).  for mc68k #2, this pin inputs the address strobe (as#).  for generic #1, this pin must be tied to v ss .  for generic #2, this pin must be tied to io v dd . see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. rd/wr# i 79 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs the rd/wr# signal. the s1d13705 needs this signal for early decode of the bus cycle.  for mc68k #1, this pin inputs the r/w# signal.  for mc68k #2, this pin inputs the r/w# signal.  for generic #1, this pin inputs the read command for the upper data byte (rd1#).  for generic #2, this pin must be tied to io v dd . see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. pin namestypepin #cell reset# state description
page 20 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 5.2.2 lcd interface rd# i 76 cs input this pin has multiple functions.  for sh-3/sh-4 mode, this pin inputs the read signal (rd#).  for mc68k #1, this pin must be tied to io v dd .  for mc68k #2, this pin inputs the bus size bit 1 (siz1).  for generic #1, this pin inputs the read command for the lower data byte (rd0#).  for generic #2, this pin inputs the read command (rd#). see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. wait# o 2 ts2 hi-z this pin has multiple functions.  for sh-3 mode, this pin outputs the wait request signal (wait#).  for sh-4 mode, this pin outputs the device ready signal (rdy#).  for mc68k #1, this pin outputs the data transfer acknowledge signal (dtack#).  for mc68k #2, this pin outputs the data transfer and size acknowledge bit 1 (dsack1#).  for generic #1, this pin outputs the wait signal (wait#).  for generic #2, this pin outputs the wait signal (wait#). see table 5-2: ?host bus interface pin mapping,? on page 22 for summary. reset# i 73 cs 0 active low input to set all internal registers to the default state and to force all signals to their inactive states. pin name type pin # cell reset# state description fpdat[7:0] o 30, 31, 32, 33, 34, 35, 36, 37 cn3 0 panel data fpdat[10:8] o, io 24, 25, 26 cn3 input these pins have multiple functions.  panel data bits [10:8] for tft/d-tfd panels.  general purpose input/output pins gpio[3:1]. these pins should be connected to io v dd when unused. see table 5-3: ?lcd interface pin mapping,? on page 23 for summary. fpdat11 o, io 23 cn3 input this pin has multiple functions.  panel data bit 11 for tft/d-tfd panels.  general purpose input/output pin gpio4.  inverse video select pin. this pin should be connected to io v dd when unused. see table 5-3: ?lcd interface pin mapping,? on page 23 for summary. fpframe o 39 cn3 0 frame pulse pin namestypepin #cell reset# state description
epson research and development page 21 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 5.2.3 clock input 5.2.4 miscellaneous 5.2.5 power supply fpline o 38 cn3 0 line pulse fpshift o 28 cn3 0 shift clock lcdpwr o 43 co1 0 active high lcd power control drdy o 42 cn3 0 this pin has multiple functions.  tft/d-tfd display enable (drdy).  lcd backplane bias (mod).  second shift clock (fpshift2). see table 5-3: ?lcd interface pin mapping,? on page 23 for summary. pin name type pin # driver description clki i 51 c input clock pin name type pin # cell reset# state description cnf[3:0] i 46, 47, 48, 49 c as set by hardware these inputs are used to configure the s1d13705 - see table 5-1: ?summary of power on/reset options,? on page 22. must be connected directly to io v dd or v ss . gpio0 io, i 22 cs/ ts1 input this pin has multiple functions - see reg[03h] bit 2.  general purpose input/output pin.  hardware power save. testen i 44 test pulled low test enable input. this input must be connected to v ss . pin name type pin # driver description corevdd p 1, 21, 41, 61 pcore v dd iovdd p 10, 29, 52 p io v dd vss p 20, 27, 40, 50, 60, 72, 80 p common v ss pin name type pin # cell reset# state description
page 22 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 5.3 summary of configuration options 5.4 host bus interface pin mapping table 5-1: summary of power on/reset options configuration pin power on/reset state cnf[3:0] select host bus interface as follows: cnf3 cnf2 cnf1 cnf0 bs# host bus 1000x sh-4 interface big endian 0000x sh-4 interface little endian 1001x sh-3 interface big endian 0001x sh-3 interface little endian x010x reserved 1011x mc68k #1, 16-bit big endian 0011x reserved x 1 0 0 x reserved 1101x mc68k #2, 16-bit big endian 0101x reserved x1100 reserved x1101 reserved 11110 generic #1, 16-bit big endian 01110 generic #1, 16-bit little endian 11111 reserved 01111 generic #2, 16-bit little endian table 5-2: host bus interface pin mapping s1d13705 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] ab0 a0 a0 lds# a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
epson research and development page 23 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 5.5 lcd interface pin mapping note 1. unused gpio pins must be connected to io v dd . 2. hardware video invert is enabled on fpdat11 by reg[02h] bit 1. table 5-3: lcd interface pin mapping s1d13705 pin name monochrome passive panel color passive panel color tft/d-tfd 4-bit single 8-bit single 8-bit dual 4-bit single 8-bit single format 1 8-bit single format 2 8-bit dual 9-bit 12-bit fpframe fpframe fpline fpline fpshift fpshift drdy mod mod mod mod fpshift2 mod mod drdy fpdat0 driven 0 d0 ld0 driven 0 d0 d0 ld0 r2 r3 fpdat1 driven 0 d1 ld1 driven 0 d1 d1 ld1 r1 r2 fpdat2 driven 0 d2 ld2 driven 0 d2 d2 ld2 r0 r1 fpdat3 driven 0 d3 ld3 driven 0 d3 d3 ld3 g2 g3 fpdat4 d0 d4 ud0 d0 d4 d4 ud0 g1 g2 fpdat5 d1 d5 ud1 d1 d5 d5 ud1 g0 g1 fpdat6 d2 d6 ud2 d2 d6 d6 ud2 b2 b3 fpdat7 d3 d7 ud3 d3 d7 d7 ud3 b1 b2 fpdat8 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 b0 b1 fpdat9 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 r0 fpdat10 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 g0 fpdat11 gpio4/ hardware video invert gpio4/ hardware video invert gpio4/ hardware video invert gpio4/ hardware video invert gpio4/ hardware video invert gpio4/ hardware video invert gpio4/ hardware video invert gpio4 b0
page 24 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 6 d.c. characteristics table 6-1: absolute maximum ratings symbol parameter rating units core v dd supply voltage v ss - 0.3 to 4.0 v io v dd supply voltage core v dd to 7.0 v v in input voltage v ss - 0.3 to io v dd + 0.5 v v out output voltage v ss - 0.3 to io v dd + 0.5 v t stg storage temperature -65 to 150 c t sol solder temperature/time 260 for 10 sec. max at lead c table 6-2: recommended operating conditions for core vdd = 3.3v 10% symbol parameter condition min typ max units core v dd supply voltage v ss = 0 v 2.7 3.0/3.3 3.6 v io v dd supply voltage v ss = 0 v, io v dd core v dd 2.7 3.0/3.3/5.0 5.5 v v in input voltage v ss io v dd v t opr operating temperature -40 25 85 c table 6-3: input specifications symbol parameter condition min typ max units v il low level input voltage cmos inputs io v dd = 3.0 3.3 5.0 0.8 0.8 1.0 v v ih high level input voltage cmos inputs io v dd = 3.0 3.3 5.0 1.9 2.0 3.5 v v t+ positive-going threshold cmos schmitt inputs io v dd = 3.0 3.3 5.0 1.0 1.1 2.0 2.3 2.4 4.0 v v t- negative-going threshold cmos schmitt inputs io v dd = 3.0 3.3 5.0 0.5 0.6 0.8 1.7 1.8 3.1 v i iz input leakage current v dd = max v ih = v dd v il = v ss -1 1 a c in input pin capacitance 10 pf
epson research and development page 25 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 table 6-4: output specifications symbol parameter condition min typ max units i ol (3.0v) low level output current io v dd = 3.0v v o = 0.4v, type = 1 2 3 1.8 5 10 ma i ol (3.3v) low level output current io v dd = 3.3v v o = 0.4v, type = 1 2 3 2 6 12 ma i ol (5.0v) low level output current io v dd = 5.0v v o = 0.4v, type = 1 2 3 3 8 12 ma i oh (3.0v) high level output current io v dd = 3.0v v o = io v dd -0.4v, type = 1 2 3 -1.8 -5 -10 ma i oh (3.3v) high level output current io v dd = 3.3v v o = io v dd -0.4v, type = 1 2 3 -2 -6 -12 ma i oh (5.0v) high level output current io v dd = 5.0v v o = io v dd -0.4v, type = 1 2 3 -3 -8 -12 ma v ol low level output voltage i = i ol 0.4 v v oh high level output voltage i = i oh io v dd - 0.4 v i oz output leakage current v dd = max v oh = v dd v ol = v ss -1 1 a c out output pin capacitance 10 pf c bid bidirectional pin capacitance 10 pf
page 26 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7 a.c. characteristics conditions: io v dd = 2.7 v to 5.0 v t a = -40 c to 85 c t rise and t fall for all inputs must be < 5 nsec (10% ~ 90%) c l = 60pf (bus/mpu interface) c l = 60pf (lcd panel interface) 7.1 bus interface timing 7.1.1 sh-4 interface timing figure 7-1: sh-4 timing note the sh-4 wait state control register for the area in which the s1d13705 resides must be set to a non-zero value. the sh-4 read-to-write cycle transition must be set to a non-zero value (with reference to busclk). rdy# t ckio t2 t3 t4 t11 t12 t17 t5 t6 t7 t8 t9 t13 t18 t15 t16 ckio a[16:0], m/r# csn# rd/wr# rd# d[15:0] bs# wen# d[15:0] hi-z hi-z hi-z hi-z valid (write) (read) t10 t14
epson research and development page 27 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 note ckio may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-1: sh-4 timing symbol parameter min max units f ckio bus clock frequency 50 mhz t ckio bus clock period 1/f ckio t2 bus clock pulse width low 8ns t3 bus clock pulse width high 8ns t4 a[16:0], rd/wr# setup to ckio 0ns t5 a[16:0], rd/wr# hold from cs# 0ns t6 bs# setup 5ns t7 bs# hold 5ns t8 csn# setup 0ns t9 falling edge rd# to db[15:0] driven 25 ns t10 ckio to we#, rd# high 1.5t ckio t11 rising edge csn# to rdy# high impedance t ckio t12 falling edge csn# to rdy# driven 20 ns t13 ckio to rdy# low 20 ns t14 rising edge csn# to rdy# high 16 ns t15 db[15:0] setup to 2 nd ckio after bs# (write cycle) 0ns t16 db[15:0] hold (write cycle) 0ns t17 rdy# falling edge to db[15:0] valid (read cycle) 7ns t18 rising edge rd# to db[15:0] high impedance (read cycle) 10 ns
page 28 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.1.2 sh-3 interface timing figure 7-2: sh-3 bus timing note the sh-3 wait state control register for the area in which the s1d13705 resides must be set to a non-zero value. t ckio t2 t3 t4 t11 t12 t16 t5 t6 t7 t8 t9 t13 t17 t14 t15 ckio a[16:0], m/r# csn# rd/wr# rd# d[15:0] bs# wait# wen# d[15:0] hi-z hi-z hi-z hi-z hi-z hi-z valid (write) (read) t10
epson research and development page 29 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 note ckio may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-2: sh-3 bus timing symbol parameter min max a a one software wait state required units f ckio bus clock frequency 50 mhz t ckio bus clock period 1/f ckio t2 bus clock pulse width low 8ns t3 bus clock pulse width high 8ns t4 a[16:0], rd/wr# setup to ckio 0ns t5 a[16:0], rd/wr# hold from cs# 0ns t6 bs# setup 5ns t7 bs# hold 5ns t8 csn# setup 0ns t9 falling edge rd# to db[15:0] driven 25 ns t10 ckio to wen#, rd# high 1.5t ckio t11 rising edge csn# to wait# high impedance 10 ns t12 falling edge csn# to wait# driven 15 ns t13 ckio to wait# delay 20 ns t14 db[15:0] setup to 2 nd ckio after bs# (write cycle) 0ns t15 db[15:0] hold from rising edge of wen# (write cycle) 0ns t16 wait# rising edge to db[15:0] valid (read cycle) 6ns t17 rising edge rd# to db[15:0] high impedance (read cycle) 10 ns
page 30 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.1.3 motorola mc68k #1 interface timing figure 7-3: mc68k #1 bus timing (mc68000) note clk may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-3: mc68k #1 bus timing (mc68000) symbol parameter min max units f clk bus clock frequency 33 mhz t clk bus clock period 1/f clk t1 a[16:1], cs# valid before as# falling edge 0 ns t2 a[16:1], cs# hold from as# rising edge 0 ns t3 as# low to dtack# driven high 16 ns t4 clk to dtack# low 15 ns t5 clk to as#, uds#, lds# high 1t clk t6 as# high to dtack# high 20 ns t7 as# high to dtack# high impedance t clk t8 uds#, lds# falling edge to d[15:0] valid (write cycle) t clk t9 d[15:0] hold from as# rising edge (write cycle) 0 ns t10 uds#, lds# falling edge to d[15:0] driven (read cycle) 15 ns t11 d[15:0] valid to dtack# falling edge (read cycle) 0 ns t12 uds#, lds# rising edge to d[15:0] high impedance 10 ns t3 a[16:1] as# uds#, lds# valid valid t1 t9 t2 t8 r/w# hi-z hi-z invalid t6 t4 dtack# hi-z hi-z clk t7 t clk cs# t10 t11 hi-z valid hi-z d[15:0] d[15:0] t12 (write (read) t5
epson research and development page 31 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 7.1.4 motorola mc68k #2 interface timing figure 7-4: mc68k #2 timing (mc68030) note clk may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-4: mc68k #2 timing (mc68030) symbol parameter min max units f clk bus clock frequency 33 mhz t clk bus clock period 1/f clk t1 a[16:0], cs#, siz0, siz1 valid before as# falling edge 0 ns t2 a[16:0], cs#, siz0, siz1 hold from as#, ds# rising edge 0 ns t3 as# low to dsack1# driven high 22 ns t4 clk to dsack1# low 18 ns t5 clk to as#, ds# high 1t clk ns t6 as# high to dsack1# high 20 ns t7 as# high to dsack1# high impedance t clk t8 ds# falling edge to d[31:16] valid (write cycle) t clk /2 t9 as#, ds# rising edge to d[31:16] invalid (write cycle) 0 ns t10 d[31:16] valid to dsack1# low (read cycle) 0 ns t11 as#, ds# rising edge to d[31:16] high impedance 20 ns a[16:0] as# ds# valid t1 t9 t2 t8 r/w# hi-z cs# siz0, siz1 clk t6 t3 t4 dsack1# hi-z hi-z t7 t clk t10 valid hi-z hi-z d[31:16] d[31:16] valid hi-z t11 (write) (read) t5
page 32 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.1.5 generic #1 interface timing figure 7-5: generic #1 timing note bclk may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-5: generic #1 timing symbol parameter min max units f bclk bus clock frequency 50 mhz t bclk bus clock period 1/f bclk mhz t1 a[16:0], cs# valid to we0#, we1# low (write cycle) or rd0#, rd1# low (read cycle) 0ns t2 we0#, we1# high (write cycle) or rd0#, rd1# high (read cycle) to a[16:0], cs# invalid 0ns t3 we0#, we1# low to d[15:0] valid (write cycle) t bclk t4 rd0#, rd1# low to d[15:0] driven (read cycle) 17 ns t5 we0#, we1# high to d[15:0] invalid (write cycle) 0 ns t6 d[15:0] valid to wait# high (read cycle) 0 ns t7 rd0#, rd1# high to d[15:0] high impedance (read cycle) 10 ns t8 we0#, we1# low (write cycle) or rd0#, rd1# low (read cycle) to wait# driven low 16 ns t9 bclk to wait# high 16 ns t10 we0#, we1# high (write cycle) or rd0#, rd1# high (read cycle) to wait# high impedance 16 ns t11 wait# high to we0#, we1#, rd0#, rd1# high 1t bclk t bclk t8 t5 t9 t3 t1 t10 bclk a[16:0] cs# we0#,we1# wait# valid t2 hi-z hi-z hi-z valid t6 t7 valid hi-z hi-z d[15:0] d[15:0] t4 rd0#, rd1# (write) (read) t11
epson research and development page 33 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 7.1.6 generic #2 interface timing figure 7-6: generic #2 timing note bclk may be turned off (held low) between accesses - see section 13.5, ?turning off bclk between accesses? on page 84 table 7-6: generic #2 timing symbol parameter min max units f bclk bus clock frequency 50 mhz t bclk bus clock period 1/f bclk t1 a[16:0], bhe#, cs# valid to we#, rd# low 0 ns t2 we#, rd# high to a[16:0], bhe#, cs# invalid 0 ns t3 we# low to d[15:0] valid (write cycle) t bclk t4 we# high to d[15:0] invalid (write cycle) 0 ns t5 rd# low to d[15:0] driven (read cycle) 16 ns t6 d[15:0] valid to wait# high (read cycle) 0 ns t7 rd# high to d[15:0] high impedance (read cycle) 10 ns t8 we#, rd# low to wait# driven low 14 ns t9 bclk to wait# high 10 ns t10 we#, rd# high to wait# high impedance 11 ns t11 wait# high to we#, rd# high 1t bclk t8 t4 t9 t3 t1 t10 bclk a[16:0] cs# we#,rd# wait# valid t2 hi-z hi-z hi-z valid t bclk t6 t7 valid hi-z hi-z d[15:0] d[15:0] t5 bhe# (write) (read) t11
page 34 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.2 clock input requirements figure 7-7: clock input requirements for clki note when clki is > 25mhz the input clock divide bit (reg[02h] bit 4) must be set to 1. table 7-7: clock input requirements for clki symbol parameter min max units f clki input clock frequency (clki) 50 mhz t clki input clock period (clki) 1/f clki ns t pwh input clock pulse width high (clki) 8 ns t pwl input clock pulse width low (clki) 8 ns t f input clock fall time (10% - 90%) 5 ns t r input clock rise time (10% - 90%) 5 ns t pwl t pwh t f clock input waveform t r t clki v ih v il 10% 90%
epson research and development page 35 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-8: clock input requirements for bclk table 7-8: clock input requirements for bclk symbol parameter min max units f bclk input clock frequency (bclk) 50 mhz t bclk input clock period (bclk) 1/f clki t pwh input clock pulse width high (bclk) 8 ns t pwl input clock pulse width low (bclk) 8 ns t f input clock fall time (10% - 90%) 5 ns t r input clock rise time (10% - 90%) 5 ns t pwl t pwh t f clock input waveform t r t bclk v ih v il 10% 90%
page 36 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3 display interface 7.3.1 power on/reset timing figure 7-9: lcd panel power on/reset timing note where t fpframe is the period of fpframe and t pclk is the period of the pixel clock. table 7-9: lcd panel power on/reset timing symbol parameter min typ max units t1 reg[03h] to fpline, fpframe, fpshift, fpdat, drdy active t fpframe ns t2 fpline, fpframe, fpshift, fpdat, drdy active to lcdpwr 0frames reset# reg[03h] bits [1:0] lcdpwr fpline fpshift fpdat drdy t1 t2 00 11 fpframe active
epson research and development page 37 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 7.3.2 power down/up timing figure 7-10: power down/up timing table 7-10: power down/up timing symbol parameter min typ max units t1 hw power save active to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 1 1frame t2 hw power save inactive to fpline, fpframe, fpshift, fpdat, drdy active - lcdpwr override = 1 1frame t3 hw power save active to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 0 1frame t4 lcdpwr low to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 0 127 frame t5 hw power save inactive to fpline, fpframe, fpshift, fpdat, drdy, lcdpwr active - lcdpwr override = 0 0frame t6 lcdpwr override active (1) to lcdpwr inactive 1 frame t7 lcdpwr override inactive (1) to lcdpwr active 1 frame t4 t3 t1 active inactive active inactive active lcdpwr override (reg[03h] bit 3) hw power save fp signals lcdpwr t2 software power save 11 00 11 00 11 t5 t6 t7 reg[03h] bits [1:0] or
page 38 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.3 single monochrome 4-bit panel timing figure 7-11: single monochrome 4-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift line1 line2 line3 line4 line239 line240 fpframe line1 line2 fpline drdy (mod) 1-2 1-6 1-318 1-3 1-7 1-319 1-4 1-8 1-320 1-1 1-5 1-317 drdy (mod) vndp hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 320x240 panel fpdat[7:4]] fpdat6 fpdat5 fpdat4 fpdat7 for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
epson research and development page 39 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-12: single monochrome 4-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 2]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 11]ts table 7-11: single monochrome 4-bit panel a.c. timing symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 2 ts t9 shift pulse period 4 ts t10 shift pulse pulse width low 2 ts t11 shift pulse pulse width high 2 ts t12 fpdat[7:4] setup to shift pulse falling edge 2 ts t13 fpdat[7:4] hold to shift pulse falling edge 2 ts t14 line pulse falling edge to shift pulse rising edge 23 ts frame pulse line pulse drdy (mod) sync timing line pulse shift pulse fpdat[7:4] data timing t12 t13 t14 t10 t11 t5 t1 t2 t3 t4 t8 t9 12 t7 t6 note: for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
page 40 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.4 single monochrome 8-bit panel timing figure 7-13: single monochrome 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts hndp vdp fpline fpshift line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline drdy (mod) 1-2 1-10 1-634 1-3 1-11 1-635 1-4 1-12 1-636 1-5 1-13 1-637 1-6 1-14 1-638 1-7 1-15 1-639 1-8 1-16 1-640 1-1 1-9 1-633 drdy (mod) vndp hdp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpdat[7:0] fpdat6 fpdat5 fpdat4 fpdat7 fpdat2 fpdat1 fpdat0 fpdat3 for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
epson research and development page 41 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-14: single monochrome 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 4]ts 5. t7 min =[(reg[08h] bits 4-0) x 8 + 13]ts table 7-12: single monochrome 8-bit panel a.c. timing symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 4 ts t9 shift pulse period 8 ts t10 shift pulse pulse width low 4 ts t11 shift pulse pulse width high 4 ts t12 fpdat[7:0] setup to shift pulse falling edge 4 ts t13 fpdat[7:0] hold to shift pulse falling edge 4 ts t14 line pulse falling edge to shift pulse rising edge 23 ts t12 t13 frame pulse line pulse drdy (mod) sync timing line pulse shift pulse fpdat[7:0] data timing t5 t1 t2 t3 t4 t14 t8 t9 t10 t11 12 t7 t6 note: for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
page 42 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.5 single color 4-bit panel timing figure 7-15: single color 4-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpdat[7:4] line1 line2 line3 line4 line239 line240 fpframe line1 line2 fpline drdy (mod) fpdat6 fpdat5 fpdat4 fpdat7 drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-b319 1-r320 1-g320 1-b320 hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 320x240 panel fpshift
epson research and development page 43 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-16: single color 4-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 1.5]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 10]ts table 7-13: single color 4-bit panel a.c. timing symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 0.5 ts t9 shift pulse period 1 ts t10 shift pulse pulse width low 0.5 ts t11 shift pulse pulse width high 0.5 ts t12 fpdat[7:4] setup to shift pulse falling edge 0.5 ts t13 fpdat[7:4] hold to shift pulse falling edge 0.5 ts t14 line pulse falling edge to shift pulse rising edge 24 ts frame pulse line pulse drdy (mod) sync timing line pulse shift pulse fpdat[7:4] data timing t5 t14 t1 t2 t3 t4 t8 t9 t10 t11 t12 t13 12 t7 t6
page 44 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.6 single color 8-bit panel timing (format 1) figure 7-17: single color 8-bit panel timing (format 1) vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift 2 line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7 hdp vndp 1-r1 1-b1 1-g2 1-r3 1-b3 1-g4 1-r5 1-b5 1-g1 1-r2 1-b2 1-g3 1-r4 1-b4 1-g5 1-r6 1-g6 1-r7 1-b7 1-g8 1-r9 1-b9 1-g10 1-r11 1-b6 1-g7 1-r8 1-b8 1-g9 1-r10 1-b10 1-g11 1-r636 1-b636 1-g637 1-r638 1-b638 1-g639 1-r640 1-b640 fpshift 1-b11 1-g12 1-r13 1-b13 1-g14 1-r15 1-b15 1-g16 1-r12 1-b12 1-g13 1-r14 1-b14 1-g15 1-r16 1-b16 hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpdat[7:0]
epson research and development page 45 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-18: single color 8-bit panel a.c. timing (format 1) 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6a min = [(reg[08h] bits 4-0) x 8]ts 5. t6b min = [(reg[08h] bits 4-0) x 8 + 2]ts 6. t7a min = [(reg[08h] bits 4-0) x 8 + 11]ts 7. t7b min = [(reg[08h] bits 4-0) x 8 + 11] - t10]ts table 7-14: single color 8-bit panel a.c. timing (format 1) symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t6a shift pulse falling edge to line pulse rising edge note 4 t6b shift pulse 2 falling edge to line pulse rising edge note 5 t7a shift pulse 2 falling edge to line pulse falling edge note 6 t7b shift pulse falling edge to line pulse falling edge note 7 t8 line pulse falling edge to shift pulse rising, shift pulse 2 falling edge t14 + 2 ts t9 shift pulse 2, shift pulse period 4 ts t10 shift pulse 2, shift pulse pulse width low 2 ts t11 shift pulse 2, shift pulse pulse width high 2 ts t12 fpdat[7:0] setup to shift pulse 2, shift pulse falling edge 1 ts t13 fpdat[7:0] hold from shift pulse 2, shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 25 ts frame pulse line pulse sync timing line pulse shift pulse 2 fpdat[7:0] data timing t14 t1 t2 t3 t4 t8 t9 t10 t11 t12 t13 12 t7a t6b shift pulse t6a t7b t12 t13
page 46 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.7 single color 8-bit panel timing (format 2) figure 7-19: single color 8-bit panel timing (format 2) vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpdat[7:0] line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline drdy (mod) fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7 drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b 2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-r5 1-g5 1-b5 1-r6 1-g6 1-b6 1-r7 1-g7 1-b7 1-r8 1-g8 1-b8 1-g638 1-b638 1-r639 1-g639 1-b639 1-r640 1-g640 1-b640 hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpshift
epson research and development page 47 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-20: single color 8-bit panel a.c. timing (format 2) 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 1]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 10]ts table 7-15: single color 8-bit panel a.c. timing (format 2) symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 2 ts t9 shift pulse period 2 ts t10 shift pulse pulse width low 1 ts t11 shift pulse pulse width high 1 ts t12 fpdat[7:0] setup to shift pulse falling edge 1 ts t13 fpdat[7:0] hold to shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 23 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0]
page 48 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.8 dual monochrome 8-bit panel timing figure 7-21: dual monochrome 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift fpdat[7:0] fpframe fpline drdy (mod) fpdat6 1-2 1-6 1-638 fpdat5 1-3 1-7 1-639 fpdat4 1-4 1-8 1-640 fpdat3 241-1 241-5 241-637 fpdat2 241-638 fpdat1 241-639 fpdat0 241-640 fpdat7 1-1 1-5 1-637 hdp drdy (mod) 241-2 241-6 241-3 241-7 241-4 241-8 vndp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel line 1/241 line 2/242 line 3/243 line 4/244 line 239/479 line 240/480 line 1/241 line 2/242
epson research and development page 49 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-22: dual monochrome 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [(((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8) x 2]ts 5. t6 min = [((reg[08h] bits 4-0) x 2)x 8 + 20]ts 6. t7 min = [((reg[08h] bits 4-0) x 2)x 8 + 29]ts table 7-16: dual monochrome 8-bit panel a.c. timing symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse falling edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 5 t7 shift pulse falling edge to line pulse falling edge note 6 t8 line pulse falling edge to shift pulse falling edge t14 + 2 ts t9 shift pulse period 8 ts t10 shift pulse pulse width low 4 ts t11 shift pulse pulse width high 4 ts t12 fpdat[7:0] setup to shift pulse falling edge 4 ts t13 fpdat[7:0] hold to shift pulse falling edge 4 ts t14 line pulse falling edge to shift pulse rising edge 39 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0] note: for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
page 50 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.9 dual color 8-bit panel timing figure 7-23: dual color 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpdat[7:0] fpframe fpline drdy (mod) drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-r5 1-g5 1-b5 1-r6 1-g6 1-b6 1-r7 1-g7 1-r8 1-g8 1-b8 1-b639 1-r640 1-g640 1-b640 241- b639 241- r640 241- g640 241- b640 241-r1 241-g1 241-b1 241-r2 241-g2 241-b2 241-r3 241-g3 241-b3 241-r4 241-g4 241-b4 241-r5 241-g5 241-b5 241-r6 241-g6 241-b6 241-r7 241-g7 241-b7 241-r8 241-g8 241-b8 1-b7 fpshift hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel line 1/241 line 2/242 line 239/479 line 240/480 line 1/241 fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7
epson research and development page 51 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-24: dual color 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [(((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8) x 2]ts 5. t6 min = [((reg[08h] bits 4-0) x 2)x 8 + 17]ts 6. t7 min = [((reg[08h] bits 4-0) x 2)x 8 + 26]ts table 7-17: dual color 8-bit panel a.c. timing symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse falling edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 5 t7 shift pulse falling edge to line pulse falling edge note 6 t8 line pulse falling edge to shift pulse falling edge t14 + 1 ts t9 shift pulse period 2 ts t10 shift pulse pulse width low 1 ts t11 shift pulse pulse width high 1 ts t12 fpdat[7:0] setup to shift pulse falling edge 1 ts t13 fpdat[7:0] hold to shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 39 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0]
page 52 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 7.3.10 9/12-bit tft/d-tfd panel timing figure 7-25: 12-bit tft/d-tfd panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = vndp1 + vndp2 = (reg[0ah] bits 5-0) lines vndp1 = vertical non-display period 1 = reg[09h] bits 5-0 lines vndp2 = vertical non-display period 2 = (reg[0ah] bits 5-0) - (reg[09ah] bits 5-0) lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = hndp1 + hndp2 = (reg[08h] + 4) x 8ts hndp1= horizontal non-display period 1 = ((reg[07h] bits4-0) x 8) +16ts hndp2= horizontal non-display period 2 = (((reg[08h] bits4-0) - (reg[07h] bits 4-0)) x 8) +16ts fpframe fpline line1 line480 1-1 1-1 1-1 1-2 1-2 1-2 1-640 1-640 1-640 fpline fpshift drdy fpdat[11:0] fpdat[9] fpdat[10] fpdat[11] vdp drdy note: drdy is used to indicate the first pixel example timing for 12-bit 640x480 panel vndp 2 hdp hndp 2 hndp 1 line480 vndp 1 fpdat[8:6] fpdat[4:3] fpdat[2:0]
epson research and development page 53 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 7-26: tft/d-tfd a.c. timing t12 t7 line pulse t8 t6 frame pulse drdy shift pulse 640 t9 line pulse 2 1639 t13 t2 t3 t16 t4 t5 t14 t15 t1 t11 t10 fpdat[11:0] note: drdy is used to indicate the first pixel t17
page 54 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 1. ts = pixel clock period 2. t6min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0)+4) x 8] ts 3. t8 min = [((reg[06h] bits 1-0, reg[05h] bits 7-0)+1) + (reg[0ah] bits 6-0)] lines 4. t10min = [((reg[04h] bits 6-0)+1) x 8] ts 5. t14min = [((reg[04h] bits 6-0)+1) x 8] ts 6. t15min = [(reg[07h] bits 4-0) x 8 + 16] ts 7. t17min = [(reg[08h] bits 4-0) - (reg[07]) x 8 + 16] ts table 7-18: tft/d-tfd a.c. timing symbol parameter min typ max units t1 shift pulse period 1 (note 1) t2 shift pulse pulse width high 0.5 ts t3 shift pulse pulse width low 0.5 ts t4 data setup to shift pulse falling edge 0.5 ts t5 data hold from shift pulse falling edge 0.5 ts t6 line pulse cycle time note 2 t7 line pulse pulse width low 9 ts t8 frame pulse cycle time note 3 t9 frame pulse pulse width low 2t6 t10 horizontal display period note 4 t11 line pulse setup to shift pulse falling edge 0.5 ts t12 frame pulse falling edge to line pulse falling edge phase difference t6 - 18ts t13 drdy to shift pulse falling edge setup time 0.5 ts t14 drdy pulse width note 5 t15 drdy falling edge to line pulse falling edge note 6 t16 drdy hold from shift pulse falling edge 0.5 ts t17 line pulse falling edge to drdy active note 7 250
epson research and development page 55 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 8 registers 8.1 register mapping the s1d13705 registers are located in the upper 32 bytes of the 128k byte s1d13705 address range. the registers are accessible when cs# = 0 and ab[16:0] are in the range 1ffe0h through 1ffffh. 8.2 register descriptions unless specified otherwise, all register bits are reset to 0 during power up. all bits marked n/a should be programmed 0. bits 7-2 product code this is a read-only register that indicates the product code of the chip. the product code is 001001. bits 1-0 revision code this is a read-only register that indicates the revision code of the chip. the revision code is 00. bit 7 tft/stn when this bit = 0, stn (passive) panel mode is selected. when this bit = 1, tft/d-tfd panel mode is selected. if tft/d-tfd panel mode is selected, dual/single (reg[01h] bit 6) and color/mono (reg[01h] bit5) are ignored. see table 8-1: ?panel data format? for a comprehensive description of panel selection. bit 6 dual/single when this bit = 0, single lcd panel drive is selected. when this bit = 1, dual lcd panel drive is selected. see table 8-1: ?panel data format? for a comprehensive description of panel selection. bit 5 color/mono when this bit = 0, monochrome lcd panel drive is selected. when this bit = 1, color lcd panel drive is selected. see table 8-1: ?panel data format? for a comprehensive description of panel selection. reg[00h] revision code register address = 1ffe0h read only. product code bit 5 product code bit 4 product code bit 3 product code bit 2 product code bit 1 product code bit 0 revision code bit 1 revision code bit 0 reg[01h] mode register 0 address = 1ffe1h read/write. tft/stn dual/single color/mono fpline polarity fpframe polarity mask fpshift data width bit 1 data width bit 0
page 56 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bit 4 fpline polarity this bit controls the polarity of fpline in tft/d-tfd mode (no effect in passive panel mode). when this bit = 0, fpline is active low. when this bit = 1, fpline is active high. bit 3 fpframe polarity this bit controls the polarity of fpframe in tft/d-tfd mode (no effect in passive panel mode). when this bit = 0, fpframe is active low. when this bit = 1, fpframe is active high. bit 2 mask fpshift fpshift is masked during non-display periods if either of the following two criteria is met: 1. color passive panel is selected (reg[01h] bit 5 = 1) 2. this bit (reg[01h] bit 2) = 1 bits 1-0 data width bits [1:0] these bits select the display data format. see table 8-1: ?panel data format? below for a comprehensive description of panel selection. table 8-1: panel data format tft/stn reg[01h] bit 7 color/mono reg[01h] bit 5 dual/single reg[01h] bit 6 data width bit 1 reg[01h] bit 1 data width bit 0 reg[01h] bit 0 function 0 0 0 0 0 mono single 4-bit passive lcd 1 mono single 8-bit passive lcd 1 0 reserved 1 reserved 1 0 0 reserved 1 mono dual 8-bit passive lcd 1 0 reserved 1 reserved 1 0 0 0 color single 4-bit passive lcd 1 color single 8-bit passive lcd format 1 1 0 reserved 1 color single 8-bit passive lcd format 2 1 0 0 reserved 1 color dual 8-bit passive lcd 1 0 reserved 1 reserved 1 x (don?t care) 0 9-bit tft/d-tfd panel 1 12-bit tft/d-tfd panel
epson research and development page 57 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 bits 7-6 bit-per-pixel bits [1:0] these bits select the color or gray-scale depth (display mode). bit 5 high performance (landscape modes only) when this bit = 0, the internal memory clock (mclk) is a divided-down version of the pixel clock (pclk). the denominator is dependent on the bit-per-pixel mode - see the table below. when this bit = 1, mclk is fixed to the same frequency as pclk for all bit-per-pixel modes. this provides a faster screen update performance in 1/2/4 bit-per-pixel modes, but also increases power consumption. this bit can be set to 1 just before a major screen update, then set back to 0 to save power after the update. this bit has no effect in swivel- view mode. refer to reg[1bh] swivelview mode register on page 67 for swivelview mode clock selection. reg[02h] mode register 1 address = 1ffe2h read/write. bit-per-pixel bit 1 bit-per-pixel bit 0 high performance input clock divide (clki/2) display blank frame repeat hardware video invert enable software video invert table 8-2: gray scale/color mode selection color/mono reg[01h] bit 5 bit-per-pixel bit 1 reg[02h] bit 7 bit-per-pixel bit 0 reg[02h] bit 6 display mode 0 0 0 2 gray scale 1 bit-per-pixel 1 4 gray scale 2 bit-per-pixel 1 0 16 gray scale 4 bit-per-pixel 1reserved 1 0 0 2 colors 1 bit-per-pixel 1 4 colors 2 bit-per-pixel 1 0 16 colors 4 bit-per-pixel 1 256 colors 8 bit-per-pixel table 8-3: high performance selection high performance bpp bit 1 bpp bit 0 display modes 0 0 0 mclk = pclk/8 1 bit-per-pixel 1 mclk = pclk/4 2 bit-per-pixel 1 0 mclk = pclk/2 4 bit-per-pixel 1 mclk = pclk 8 bit-per-pixel 1xxmclk = pclk
page 58 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bit 4 input clock divide when this bit = 0, the operating clock(clk) is the same as the input clock (clki). when this bit = 1, clk = clki/2. in landscape mode pclk=clk and mclk is selected as per table 8-3: ?high perfor- mance selection?. in swivelview mode, mclk and pclk are derived from clk as shown in table 8-8: ?selection of pclk and mclk in swivelview mode,? on page 68. bit 3 display blank this bit blanks the display image. when this bit = 1, the display is blanked (fpdat lines to the panel are driven low). when this bit = 0, the display is enabled. bit 2 frame repeat (el support) this feature is used to improve frame rate modulation of el panels. when this bit = 1, an internal frame counter runs from 0 to 3ffffh. when the frame counter rolls over, the modulated image pattern is repeated (every 1 hour when the frame rate is 72hz). when this bit = 0, the modulated image pattern is never repeated. bit 1 hardware video invert enable in passive panel modes (reg[01h] bit 7 = 0) fpdat11 is available as either gpio4 or hardware video invert. when this bit = 1, hardware video invert is enabled via the fpdat11 pin. when this bit = 0, fpdat11 operates as gpio4. see table 8-4: ?inverse video mode select options? below. note video data is inverted after the look-up table. bit 0 software video invert when this bit = 1, inverse video mode is selected. when this bit = 0, standard video mode is selected. see table 8-4: ?inverse video mode select options? below. note video data is inverted after the look-up table. table 8-4: inverse video mode select options hardware video invert enable software video invert (passive and active panels) fpdat11 (passive panels only) video data 00 xnormal 01 xinverse 1x 0normal 1x 1inverse
epson research and development page 59 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 bit 3 lcdpwr override this bit is used to override the panel on/off sequencing logic. when this bit = 0, lcdpwr and the panel interface signals are controlled by the sequencing logic. when this bit 1, lcdpwr is forced to off and the panel interface signals are forced low immediately upon entering power save mode. see section 7.3.2, ?power down/up timing? on page 37 for further information. bit 2 hardware power save enable when this bit = 1 gpio0 is used as the hardware power save input pin. when this bit = 0, gpio0 operates normally. bits 1-0 software power save bits [1: 0] these bits select the power save mode as shown in the following table. refer to section 13, ?power save modes? on page 82 for a complete description of the power save modes. reg[03h] mode register 2 address = 1ffe3h read/write n/an/an/an/a lcdpwr override hardware power save enable software power save bit 1 software power save bit 0 table 8-5: hardware power save/gpio0 operation reset# state hardware power save enable reg[03h] bit 2 gpio0 config reg[18h] bit 0 gpio0 status/control reg[19h] bit 0 gpio0 operation 0x x x 1 0 0 reads pin status gpio0 input (high impedance) 1 0 1 0 gpio0 output = 0 1 0 1 1 gpio0 output = 1 11 x x hardware power save input (active high) table 8-6: software power save mode selection bit 1 bit 0 mode 0 0 software power save 0 1 reserved 1 0 reserved 1 1 normal operation
page 60 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bits 6-0 horizontal panel size bits [6:0] this register determines the horizontal resolution of the panel. this register must be pro- grammed with a value calculated as follows: note this register must not be set to a value less than 03h. . reg[05h] bits 7-0 vertical panel size bits [9:0] reg[06h] bits 1-0 this 10-bit register determines the vertical resolution of the panel. this register must be programmed with a value calculated as follows: 3ffh is the maximum value of this register for a vertical resolution of 1024 lines. reg[04h] horizontal panel size register address = 1ffe4h read/write n/a horizontal panel size bit 6 horizontal panel size bit 5 horizontal panel size bit 4 horizontal panel size bit 3 horizontal panel size bit 2 horizontal panel size bit 1 horizontal panel size bit 0 reg[05h] vertical panel size register (lsb) address = 1ffe5h read/write vertical panel size bit 7 vertical panel size bit 6 vertical panel size bit 5 vertical panel size bit 4 vertical panel size bit 3 vertical panel size bit 2 vertical panel size bit 1 vertical panel size bit 0 reg[06h] vertical panel size register (msb) address = 1ffe6h read/write n/a n/a n/a n/a n/a n/a vertical panel size bit 9 vertical panel size bit 8 horizontalpanelsizeregister horizontalpanelresolution pixels () 8 ---------------------------------------------------------------------------------------------- ?? ?? 1 ? = verticalpanelsizeregister verticalpanelresolution lines () 1 ? =
epson research and development page 61 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 bits 4-0 fpline start position these bits are used in tft/d-tfd mode to specify the position of the fpline pulse. these bits specify the delay, in 8-pixel resolution, from the end of a line of display data (fpdat) to the leading edge of fpline. this register is effective in tft/d-tfd mode only (reg[01h] bit 7 = 1). this register is programmed as follows: the following constraint must be satisfied: bits 4-0 horizontal non-display period these bits specify the horizontal non-display period in 8-pixel resolution. bits 5-0 fpframe start position these bits are used in tft/d-tfd mode to specify the position of the fpframe pulse. these bits specify the number of lines between the last line of display data (fpdat) and the leading edge of fpframe. this register is effective in tft/d-tfd mode only (reg[01h] bit 7 = 1). this register is programmed as follows: the contents of this register must be greater than zero and less than or equal to the vertical non-display period register, i.e. reg[07h] fpline start position address = 1ffe7h read/write n/a n/a n/a fpline start position bit 4 fpline start position bit 3 fpline start position bit 2 fpline start position bit 1 fpline start position bit 0 reg[08h] horizontal non-display period address = 1ffe8h read/write n/a n/a n/a horizontal non-display period bit 4 horizontal non-display period bit 3 horizontal non-display period bit 2 horizontal non-display period bit 1 horizontal non-display period bit 0 reg[09h] fpframe start position address = 1ffe9h read/write n/a n/a fpframe start position bit 5 fpframe start position bit 4 fpframe start position bit 3 fpframe start position bit 2 fpframe start position bit 1 fpframe start position bit 0 fplineposition pixels () reg 07h [] 2 + () 8 = reg 07h [] reg 08h [] horizontalnondisplayperiod pixels () reg 08h [] 4 + () 8 = fpframeposition lines () reg 09h [] = 1reg09h [] reg 0ah [] bits 5:0 ?
page 62 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bit 7 vertical non-display status this bit =1 during the vertical non-display period. bits 5-0 vertical non-display period these bits specify the vertical non-display period. this register is programmed as follows: note this register should be set only once, on power-up during initialization. . bits 5-0 mod rate bits [5:0] when the value of this register is 0, the mod output signal toggles every fpframe. for a non-zero value, the value in this register + 1 specifies the number of fplines between toggles of the mod output signal. these bits are for passive lcd panels only. reg[0ah] vertical non-display period address = 1ffeah read/write vertical non- display status n/a vertical non- display period bit 5 vertical non- display period bit 4 vertical non- display period bit 3 vertical non- display period bit 2 vertical non- display period bit 1 vertical non- display period bit 0 reg[0bh] mod rate register address = 1ffebh read/write n/a n/a mod rate bit 5 mod rate bit 4 mod rate bit 3 mod rate bit 2 mod rate bit 1 mod rate bit 0 verticalnondisplayperiod lines () reg[0ah] bits [5:0] =
epson research and development page 63 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 reg[0dh] bits 7-0 screen 1 start address bits [15:0] reg[0ch] bits 7-0 these bits determine the word address of the start of screen 1 in landscape modes or the byte address of the start of screen 1 in swivelview modes. note for swivelview mode the most significant bit (bit 16) is located in reg[10h]. reg[0fh] bits 7-0 screen 2 start address bits [15:0] reg[0eh] bits 7-0 these bits determine the word address of the start of screen 2 in landscape modes only and has no effect in swivelview modes. bit 0 screen 1 start address bit 16 this bit is the most significant bit of screen 1 start address for swivelview mode. this bit has no effect in landscape mode. reg[0ch] screen 1 start address register (lsb) address = 1ffech read/write screen 1 start address bit 7 screen 1 start address bit 6 screen 1 start address bit 5 screen 1 start address bit 4 screen 1 start address bit 3 screen 1 start address bit 2 screen 1 start address bit 1 screen 1 start address bit 0 reg[0dh] screen 1 start address register (msb) address = 1ffedh read/write screen 1 start address bit 15 screen 1 start address bit 14 screen 1 start address bit 13 screen 1 start address bit 12 screen 1 start address bit 11 screen 1 start address bit 10 screen 1 start address bit 9 screen 1 start address bit 8 reg[0eh] screen 2 start address register (lsb) address = 1ffeeh read/write screen 2 start address bit 7 screen 2 start address bit 6 screen 2 start address bit 5 screen 2 start address bit 4 screen 2 start address bit 3 screen 2 start address bit 2 screen 2 start address bit 1 screen 2 start address bit 0 reg[0fh] screen 2 start address register (msb) address = 1ffefh read/write screen 2 start address bit 15 screen 2 start address bit 14 screen 2 start address bit 13 screen 2 start address bit 12 screen 2 start address bit 11 screen 2 start address bit 10 screen 2 start address bit 9 screen 2 start address bit 8 reg[10h] screen start address overflow register address = 1fff0h read/write n/an/an/an/an/an/an/a screen 1 start address bit 16
page 64 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bits 7-0 memory address offset bits [7:0] (landscape modes only) this register is used to create a virtual image by setting a word offset between the last address of one line and the first address of the following line. if this register is not equal to zero, then a virtual image is formed. the displayed image is a window into the larger vir- tual image. see figure 8-1: ?screen-register relationship, split screen,? on page 65. this register has no effect in swivelview modes. see ?reg[1ch] line byte count regis- ter for swivelview mode? on page 68. . reg[13h] bits 1-0 screen 1 vertical size bits [9:0] reg[12h] bits 7-0 this register is used to implement the split screen feature of the s1d13705. these bits determine the height (in lines) of screen 1. in landscape modes, if this register is programmed with a value, n, where n is less than the vertical panel size (reg[06h], reg[05h]), then lines 0 to n of the panel contain screen 1 and lines n+1 to reg[06h], reg[05h] of the panel contain screen 2. see figure 8-1: ?screen-register relationship, split screen,? on page 65. if split screen is not desired, this register must be programmed greater than, or equal to the vertical panel size, reg[06h] and reg[05h]. in swivelview modes this register must be programmed greater than, or equal to the verti- cal panel size, reg[06h] and reg[05h]. see ?swivelview?? on page 77. reg[11h] memory address offset register address = 1fff1h read/write memory address offset bit 7 memory address offset bit 6 memory address offset bit 5 memory address offset bit 4 memory address offset bit 3 memory address offset bit 2 memory address offset bit 1 memory address offset bit 0 reg[12h] screen 1 vertical size register (lsb) address = 1fff2h read/write screen 1 vertical size bit 7 screen 1 vertical size bit 6 screen 1 vertical size bit 5 screen 1 vertical size bit 4 screen 1 vertical size bit 3 screen 1 vertical size bit 2 screen 1 vertical size bit 1 screen 1 vertical size bit 0 reg[13h] screen 1 vertical size register (msb) address = 1fff3h read/write n/a n/a n/a n/a n/a n/a screen 1 vertical size bit 9 screen 1 vertical size bit 8
epson research and development page 65 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 figure 8-1: screen-register relationship, split screen consider an example where reg[13h], reg[12] = 0ceh for a 320x240 display system. the upper 207 lines (ceh + 1) of the panel show an image from the screen 1 start word address. the remaining 33 lines show an image from the screen 2 start word address. bits 7-0 lut address bits [7:0] these 8 bits control a pointer into the look-up tables (lut). the s1d13705 has three 256-position, 4-bit wide luts, one for each of red, green, and blue ? refer to section 11, ?look-up table architecture? on page 71 for details. this register selects which lut entry is read/write accessible through the lut data reg- ister (reg[17h]). writing the lut address register automatically sets the pointer to the red lut. accesses to the lut data register automatically increment the pointer. for example, writing a value 03h into the lut address register sets the pointer to r[3]. a subsequent access to the lut data register accesses r[3] and moves the pointer onto g[3]. subsequent accesses to the lut data register move the pointer onto b[3], r[4], g[4], b[4], r[5], etc. note the rgb data is inserted into the lut after the blue data is written, i.e. all three colors must be written before the lut is updated. reg[15h] look-up table address register address = 1fff5h read/write lut address bit 7 lut address bit 6 lut address bit 5 lut address bit 4 lut address bit 3 lut address bit 2 lut address bit 1 lut address bit 0 line 0 line 1 (reg[0dh], reg[0ch]) words line 0 last pixel address + reg[11h] words line 0 last pixel address=((reg[0dh], reg[0ch]) + (8(reg[04h]+1) bpp/16)) 8(reg[04h]+1) pixels virtual image reg[11h] words line=(reg[13h], reg[12h]) ((reg[06h], reg[05])+1) lines image 1 image 2 (reg[0fh], reg[0eh]) words where: (reg[0dh], reg[0ch]) is the screen 1 start word address bpp is bits-per-pixel as set by reg[02h] bits 7:6 reg[11h] is the address pitch adjustment in words (reg[0fh], reg[0eh]) is the screen 2 start word address (reg[13h], reg[12h]) is the screen 1 vertical size (reg[06h], reg[05h]) is the vertical panel size words
page 66 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bits 7-4 lut data bits [3:0] this register is used to read/write the rgb look-up tables. this register accesses the entry at the pointer controlled by the look-up table address register (reg[15h]). accesses to the look-up table data register automatically increment the pointer. note the rgb data is inserted into the lut after the blue data is written, i.e. all three colors must be written before the lut is updated. bits 4-0 gpio[4:0] pin io configuration these bits determine the direction of the gpio[4:0] pins. when the gpion pin io configuration bit = 0, the corresponding gpion pin is configured as an input. the input can be read at the gpion status/control register bit. see reg[19h] gpio status/control register. when the gpion pin io configuration bit = 1, the corresponding gpion pin is configured as an output. the output can be controlled by writing the gpion status/control register bit. note these bits have no effect when the gpion pin is configured for a specific function (i.e. as fpdat[11:8] for tft/d-tfd operation). when configured as io, all unused pins must be tied to io v dd . reg[17h] look-up table data register address = 1fff7h read/write lut data bit 3 lut data bit 2 lut data bit 1 lut data bit 0 n/a n/a n/a n/a reg[18h] gpio configuration control register address = 1fff8h read/write n/a n/a n/a gpio4 pin io configuration gpio3 pin io configuration gpio2 pin io configuration gpio1 pin io configuration gpio0 pin io configuration
epson research and development page 67 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 bits 4-0 gpio[4:0] status when the gpion pin is configured as an input, the corresponding gpio status bit is used to read the pin input. see reg[18h] above. when the gpion pin is configured as an output, the corresponding gpio status bit is used to control the pin output. bits 7-0 scratch pad register this register contains general use read/write bits. these bits have no effect on hardware. bit 7 swivelview mode enable when this bit = 1, swivelview mode is enabled. when this bit = 0, landscape mode is enabled. bit 6 swivelview mode select when this bit = 0, default swivelview mode is selected. when this bit = 1, alternate swivelview mode is selected. see section 12, ?swivelview?? on page 77 for further information on swivelview mode. the following table shows the selection of swivelview mode. reg[19h] gpio status/control register address = 1fff9h read/write n/a n/a n/a gpio4 pin io status gpio3 pin io status gpio2 pin io status gpio1 pin io status gpio0 pin io status reg[1ah] scratch pad register address = 1fffah read/write scratch bit 7 scratch bit 6 scratch bit 5 scratch bit 4 scratch bit 3 scratch bit 2 scratch bit 1 scratch bit 0 reg[1bh] swivelview mode register address = 1fffbh read/write swivelview mode enable swivelview mode select n/a n/a n/a reserved swivelview mode pixel clock select bit 1 swivelview mode pixel clock select bit 0 table 8-7: selection of swivelview mode swivelview mode enable (reg[1bh] bit 7) swivelview mode select (reg[1bh] bit 6) mode 0 x landscape 1 0 default swivelview 1 1 alternate swivelview
page 68 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 bit 2 reserved reserved bits must be set to 0. bits 1-0 swivelview mode pixel clock select bits [1:0] these two bits select the pixel clock (pclk) source in swivelview mode - these bits have no effect in landscape mode. the following table shows the selection of pclk and mclk in swivelview mode - see section 12, ?swivelview?? on page 77 for details. bits 7-0 line byte count bits [7:0] this register is the byte count from the beginning of one line to the beginning of the next consecutive line (commonly called ?stride? by programmers). this register may be used to create a virtual image in swivelview mode. when this register = 00 the ?stride? = 256 bytes. this value is used for 240x320 8 bpp default swivelview mode when the line byte count register = n, where 1 n ffh, the ?stride? = n bytes. reg[1eh] and reg[1fh] reg[1eh] and reg[1fh] are reserved for factory s1d13705 testing and should not be written. any value written to these registers may result in damage to the s1d13705 and/or any panel connected to the s1d13705. table 8-8: selection of pclk and mclk in swivelview mode swivelview mode enable (reg[1bh] bit 7) swivelview mode select (reg[1bh] bit 6) pixel clock (pclk) select (reg[1bh] bits [1:0] pclk = mclk = bit 1 bit 0 0 x x x clk see reg[02h] bit 5 1000clk clk 1001clk/2clk/2 1010clk/4clk/4 1011clk/8clk/8 1100clk/2clk 1101clk/2clk 1110clk/4clk/2 1111clk/8clk/4 where clk is clki (reg[02h] bit 4 = 0) or clki/2 (reg[02h] bit 4 = 1) reg[1ch] line byte count register for swivelview mode address = 1fffch read/write line byte count bit 7 line byte count bit 6 line byte count bit 5 line byte count bit 4 line byte count bit 3 line byte count bit 2 line byte count bit 1 line byte count bit 0
epson research and development page 69 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 9 frame rate calculation the following formulae are used to calculate the display frame rate. tft/d-tfd and passive single-panel modes where: f pclk = pclk frequency (hz) hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8 pixels hndp = horizontal non-display period = ((reg[08h] bits 4-0) + 4) x 8 pixels vdp = vertical display period = ((reg[06h] bits 1-0, reg[05h] bits 7-0) + 1) lines vndp = vertical non-display period = (reg[0ah] bits 5-0) lines passive dual-panel mode where: f pclk = pclk frequency (hz) hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8 pixels hndp = horizontal non-display period = ((reg[08h] bits 4-0) + 4) x 8 pixels vdp = vertical display period = ((reg[06h] bits 1-0, reg[05h] bits 7-0) + 1) lines vndp = vertical non-display period = (reg[0ah] bits 5-0) lines framerate f pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate f pclk 2 hdp hndp + () vdp 2 ------------ v n d p + ?? ?? -------------------------------------------------------------------------------------------------- - =
page 70 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 10 display data formats figure 10-1: 1/2/4/8 bit-per-pixel display data memory organization 1-bpp: a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 host address display memory panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 2-bpp: a 0 b 0 a 1 b 1 a 2 b 2 a 3 b 3 host address display memory a 4 b 4 a 5 b 5 a 6 b 6 a 7 b 7 bit 7 bit 0 bit 7 bit 0 4-bpp: a 0 b 0 c 0 d 0 a 1 b 1 c 1 d 1 host address display memory a 2 b 2 c 2 d 2 a 3 b 3 c 3 d 3 bit 7 bit 0 a 4 b 4 c 4 d 4 a 5 b 5 c 5 d 5 host address display memory bit 7 bit 0 8-bpp: a 0 b 0 c 0 d 0 e 0 f 0 g 0 h 0 a 1 b 1 c 1 d 1 e 1 f 1 g 1 h 1 a 2 b 2 c 2 d 2 e 2 f 2 g 2 h 2 byte 0 byte 0 byte 1 byte 0 byte 1 byte 2 byte 0 byte 1 byte 2 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 p n = (a n ) p n = (a n , b n ) p n = (a n , b n , c n , d n ) p n = (a n , b n , c n , d n , e n , f n , g n , h n )
epson research and development page 71 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 11 look-up table architecture the following figures are intended to show the display data output path only. note when video data invert is enabled the video data is inverted after the look-up table. 11.1 monochrome modes the green look-up table (lut) is used for all monochrome modes. 1 bit-per-pixel monochrome mode figure 11-1: 1 bit-per-pixel monochrome mode data output path 2 bit-per-pixel monochrome mode figure 11-2: 2 bit-per-pixel monochrome mode data output path green look-up table 256x4 00 01 fc fd fe ff 1 bit-per-pixel data 4-bit gray data from display buffer 0 1 02 = unused look-up table entries green look-up table 256x4 00 01 02 03 fc fd fe ff 00 01 2 bit-per-pixel data 4-bit gray data from display buffer 10 11 = unused look-up table entries 04
page 72 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 4 bit-per-pixel monochrome mode figure 11-3: 4 bit-per-pixel monochrome mode data output path green look-up table 256x4 00 01 02 03 fc fd fe ff 0000 0001 4 bit-per-pixel data 4-bit gray data from display buffer 0010 0011 04 05 06 07 0100 0101 0110 0111 08 09 0a 0b 0c 0d 0e 0f 1000 1001 1010 1011 1100 1101 1110 1111 = unused look-up table entries 10
epson research and development page 73 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 11.2 color modes 1 bit-per-pixel color mode figure 11-4: 1 bit-per-pixel color mode data output path red look-up table 256x4 00 01 fc fd fe ff 1 bit-per-pixel data from display buffer green look-up table 256x4 00 01 fc fd fe ff blue look-up table 256x4 00 01 fc fd fe ff 0 1 0 1 0 1 4-bit red data 4-bit green data 4-bit blue data = unused look-up table entries 02 02 02
page 74 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 2 bit-per-pixel color mode figure 11-5: 2 bit-per-pixel color mode data output path red look-up table 256x4 00 01 02 03 fc fd fe ff 00 01 2 bit-per-pixel data 4-bit red data from display buffer 10 11 green look-up table 256x4 00 01 02 03 00 01 4-bit green data 10 11 blue look-up table 256x4 00 01 02 03 00 01 4-bit blue data 10 11 = unused look-up table entries 04 04 fc fd fe ff 04 fc fd fe ff
epson research and development page 75 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 4 bit-per-pixel color mode figure 11-6: 4 bit-per-pixel color mode data output path red look-up table 256x4 00 01 02 03 0000 0001 4 bit-per-pixel data 4-bit red data from display buffer 0010 0011 04 05 06 07 0100 0101 0110 0111 08 09 0a 0b 0c 0d 0e 0f 1000 1001 1010 1011 1100 1101 1110 1111 green look-up table 256x4 00 01 02 03 0000 0001 4-bit green data 0010 0011 04 05 06 07 0100 0101 0110 0111 08 09 0a 0b 0c 0d 0e 0f 1000 1001 1010 1011 1100 1101 1110 1111 blue look-up table 256x4 00 01 02 03 0000 0001 4-bit blue data 0010 0011 04 05 06 07 0100 0101 0110 0111 08 09 0a 0b 0c 0d 0e 0f 1000 1001 1010 1011 1100 1101 1110 1111 = unused look-up table entries 10 fc fd fe ff 10 fc fd fe ff 10 fc fd fe ff
page 76 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 8 bit-per-pixel color mode figure 11-7: 8 bit-per-pixel color mode data output path red look-up table 256x4 00 01 02 03 0000 0000 0000 0001 8 bit-per-pixel data 4-bit red data from display buffer 0000 0010 0000 0011 04 05 06 07 0000 0100 0000 0101 0000 0110 0000 0111 f8 f9 fa fb fc fd fe ff 1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111 green look-up table 256x4 00 01 02 03 0000 0000 0000 0001 4-bit green data 0000 0010 0000 0011 04 05 06 07 0000 0100 0000 0101 0000 0110 0000 0111 f8 f9 fa fb fc fd fe ff 1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111 blue look-up table 256x4 00 01 02 03 0000 0000 0000 0001 4-bit blue data 0000 0010 0000 0011 04 05 06 07 0000 0100 0000 0101 0000 0110 0000 0111 f8 f9 fa fb fc fd fe ff 1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111
epson research and development page 77 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 12 swivelview? many of todays applications use the lcd panel in a portrait orientation. in this case it becomes necessary to ?rotate? the displayed image by 90. this rotation can be done by software at the expense of performance or, it can be done by the s1d13705 hardware with no cpu penalty. there are two swivelview modes: default swivelview mode and alternate swivelview mode. 12.1 default swivelview mode default swivelview mode requires the swivelview image width be a power of two, e.g. a 240-line panel requires a minimum virtual image width of 256. this mode should be used whenever the required virtual image can be contained within the integrated display buffer (i.e. virtual image size 80k bytes), as it consumes less power than the alternate swivelview mode. for example, the panel size is 320x240 and the display mode is 8 bit-per-pixel. the virtual image size is 320x256 which can be contained within the 80k byte display buffer. default swivelview mode also requires memory clock (mclk) pixel clock (pclk). the following figure shows how the programmer sees a 240x320 image and how the image is displayed. the application image is written to the s1d13705 in the following sense: a?b?c?d. the display is refreshed by the s1d13705 in the following sense: b-d-a-c. figure 12-1: relationship between the screen image and the image refreshed by s1d13705 in default mode 256 256 image seen by programmer = image in display buffer 320 swivelview window 320 240 ab c d d c b a 240 start address swivelview window display e e image refreshed by s1d13705 start address physical memory
page 78 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 12.1.1 how to set up default swivelview mode the following describes the register settings needed to set up default swivelview mode for a 240x320x8 bpp image:  select default swivelview mode: reg[1bh] bit 7 = 1 and bit 6 = 0  the display refresh circuitry starts at pixel ?b?, therefore the screen 1 start address register must be programmed with the address of pixel ?b?, i.e.  the line byte count register for swivelview mode must be set to the virtual-image width in bytes, i.e.  panning is achieved by changing the screen 1 start address register:  increment the register by 1 to pan horizontally by one byte, e.g. one pixel in 8 bpp mode  increment the register by twice the effective value of the line byte count register to pan vertically by two lines, e.g. add 200h to pan by two lines in the example above. note vertical panning by a single line is not supported in default swivelview mode. reg[10h], reg[0dh], reg[0ch] addressofpixelb = addressofpixela byteoffset + () = addressofpixela 240pixels 8bpp 8bpb -------------------------------------------- ?? ?? 1 ? + = addressofpixela efh + = where bpp is bits-per-pixel and bpb is bits-per-byte. reg 1ch [] 256 8bpb () 8bpp () ----------------------------------------- - 256 1 -------- - 256 00h :see reg[1ch] for explanation ==== where bpb is bits-per-byte and bpp is bits-per-pixel.
epson research and development page 79 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 12.2 alternate swivelview mode alternate swivelview mode may be used when the virtual image size of default swivelview mode cannot be contained in the 80k byte integrated frame buffer. for example, the panel size is 480x320 and the display mode is 4 bit-per-pixel. the minimum virtual image size for default swivelview mode would be 480x512 which requires 122,880 bytes. alternate swivelview mode requires a panel size of only 480x320 which needs only 76,800 bytes. alternate swivelview mode requires the memory clock (mclk) to be at least twice the frequency of the pixel clock (pclk), i.e. mclk 2 x pclk. this makes the power consumption in alternate swivelview mode higher than in default swivelview mode while increasing performance. the following figure shows how the programmer sees a 480x320 image and how the image is being displayed. the application image is written to the s1d13705 in the following sense: a?b?c?d. the display is refreshed by the s1d13705 in the following sense: b-d- a-c. figure 12-2: relationship between the screen image and the image refreshed by s1d13705 in alternate mode image seen by programmer = image in display buffer 480 swivelview window 480 320 ab c d d c b a 320 start address swivelview window display image refreshed by s1d13705 start address physical memory
page 80 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 12.2.1 how to set up alternate swivelview mode the following describes the register settings needed to set up alternate swivelview mode for a 320x480x4 bpp image.  select alternate swivelview mode: reg[1bh] bit 7 = 1 and bit 6 = 1  the display refresh circuitry starts at pixel ?b?, therefore the screen 1 start address register must be programmed with the address of pixel ?b?, or  the line byte count register for swivelview mode must be set to the image width in bytes, i.e.  panning is achieved by changing the screen 1 start address register:  increment the register by 1 to pan horizontally by one byte, e.g. two pixels in 4 bpp mode  increment the register by the value in the line byte count register to pan vertically by one line, e.g. add a0h to pan by one line in the example above reg[10h], reg[0dh], reg[0ch] addressofpixelb = addressofpixela byteoffset + () = addressofpixela 320pixels 4bpp 8bpb -------------------------------------------- ?? ?? 1 ? + = addressofpixela 9fh + = where bpp is bits-per-pixel and bpb is bits-per-byte. reg 1ch [] 320 8bpb () 4bpp () ----------------------------------------- - 320 2 -------- -160a0h ==== where bpb is bits-per-byte and bpp is bits-per-pixel.
epson research and development page 81 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 12.3 comparison between default and alternate swivelview modes 12.4 swivelview mode limitations the only limitation to using swivelview mode on the s1d13705 is that split screen operation is not supported. table 12-1: default and alternate swivelview mode comparison item default swivelview mode alternate swivelview mode memory requirements the width of the rotated image must be a power of 2. in most cases, a virtual image is required where the right-hand side of the virtual image is unused and memory is wasted. for example, a 320x480x4bpp image would normally require only 76,800 bytes - possible within the 80k byte address space, but the virtual image is 512x480x4bpp which needs 122,880 bytes - not possible. does not require a virtual image. clock requirements clk need only be as fast as the required pclk. mclk, and hence clk, need to be 2x pclk. for example, if the panel requires a 3mhz pclk, then clk must be 6mhz. note that 25mhz is the maximum clk, so pclk cannot be higher than 12.5mhz in this mode. power consumption lowest power consumption. higher than default mode. panning vertical panning in 2 line increments. vertical panning in 1 line increments. performance nominal performance. higher performance than default mode.
page 82 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 13 power save modes two power save modes have been incorporated into the s1d13705 to accommodate the need for power reduction in the hand-held devices market. these modes are enabled as follows: 13.1 software power save mode software power save mode saves power by powering down the panel and stopping display refresh accesses to the display buffer. 13.2 hardware power save mode hardware power save mode saves power by powering down the panel, stopping accesses to the display buffer and registers, and disabling the host bus interface. table 13-1: power save mode selection hardware power save software power save bit 1 software power save bit 0 mode not configured or 0 0 0 software power save mode not configured or 0 0 1 reserved not configured or 0 1 0 reserved not configured or 0 1 1 normal operation configured and 1 x x hardware power save mode table 13-2: software power save mode summary  registers read/write accessible  memory read/write accessible  look-up table registers not accessible  lcd outputs are forced low table 13-3: hardware power save mode summary  host interface not accessible  memory read/write not accessible  look-up table registers not accessible  lcd outputs are forced low
epson research and development page 83 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 13.3 power save mode function summary note when fpdat[11:8] are designated as gpio outputs, the output state prior to enabling the power save mode is maintained. when fpdat[11:8] are designated as gpio in- puts, unused inputs must be tied to either io v dd or gnd - see table 5.5 ?lcd inter- face pin mapping,? on page 23. 13.4 panel power up/down sequence after chip reset or when entering/exiting a power save mode, the panel interface signals follow a power on/off sequence shown below. this sequence is essential to prevent damage to the lcd panel. table 13-4: power save mode function summary hardware power save software power save normal io access possible? no yes yes memory access possible? no yes yes look-up table registers access possible? no no yes sequence controller running? no no yes display active? no no yes lcdpwr inactive inactive active fpdat[11:0], fpshift (see note) forced low forced low active fpline, fpframe, drdy forced low forced low active
page 84 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 figure 13-1: panel on/off sequence after chip reset, lcdpwr is inactive and the rest of the panel interface output signals are held ?low?. software initializes the chip (i.e. programs all registers except the look-up table registers) and then programs reg[03h] bits [1:0] to 11b. this starts the power-up sequence as shown. the power-up/power-down sequence delay is 127 frames. the look- up table registers may be programmed any time after reg[03h] bits[1:0] = 11b. the power-up/power-down sequence also occurs when exiting/entering software power save mode. 13.5 turning off bclk between accesses bclk may be turned off (held low) between accesses if the following rules are observed: 1. bclk must be turned off/on in a glitch free manner 2. bclk must continue for a period equal to [8t bclk + 12t mclk ] after the end of the access (rdy# asserted or wait# deasserted). 3. bclk must be present for at least one t bclk before the start of an access. reset# lcdpwr panel interface output signals (except lcdpwr) 0 frame 127 frames 0 frame power save mode power-down power-up power-up software power save 00 11 00 11 hardware power save reg[03h] bits [1:0] or
epson research and development page 85 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 13.6 clock requirements the following table shows what clock is required for which function in the s1d13705 table 13-5: s1d13705 internal clock requirements function bclk clki register read/write is required during register accesses. bclk can be shut down between accesses: allow eight bclk pulses plus 12 mclk pulses (8t bclk + 12t mclk ) after the last access before shutting bclk off. allow one bclk pulse after starting up bclk before the next access not required memory read/write is required during memory accesses. bclk can be shut down between accesses: allow eight bclk pulses plus 12 mclk pulses (8t bclk + 12t mclk ) after the last access before shutting bclk off. allow one bclk pulse after starting up bclk before the next access required look-up table register read/write is required during lut register accesses. bclk can be shut down between accesses: allow eight bclk pulses plus 12 mclk pulses (8t bclk + 12t mclk ) after the last access before shutting bclk off. allow one bclk pulse after starting up bclk before the next access not required software power save required can be stopped after 128 frames from entering software power save, i.e. after reg[03h] bits 1-0 = 11 hardware power save not required can be stopped after 128 frames from entering hardware power save
page 86 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 14 mechanical data figure 14-1: mechanical drawing qfp14 qfp14 - 80 pin unit: mm 120 60 41 40 21 61 80 index 0~10 12.0 0.1 12.0 0.1 14.0 0.4 14.0 0.4 0.5 0.18 1.4 0.1 0.125 1.0 0.5 0.2 0.1 - 0.05 + 0.1 - 0.025 + 0.05
epson research and development page 87 vancouver design center hardware functional specification s1d13705 issue date: 02/02/01 x27a-a-001-10 15 sales and technical support japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 http://www.epson.com.hk/ taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan tel: 02-2717-7360 fax: 02-2712-9164 http://www.epson.com.tw/ singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 http://www.epson.com.sg/ europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 http://www.epson-electronics.de north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 88 epson research and development vancouver design center s1d13705 hardware functional specification x27a-a-001-10 issue date: 02/02/01 this page left blank
s1d13705 embedded memory lcd controller programming notes and examples document number: x27a-g-002-03 copyright ? 2001, 2002 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 this page left blank
epson research and development page 3 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 display buffer location . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 register values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 frame rate calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 memory models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1 1 bit-per-pixel (2 colors/gray shades) . . . . . . . . . . . . . . . . . . . . 12 3.2 2 bit-per-pixel (4 colors/gray shades) . . . . . . . . . . . . . . . . . . . . 13 3.3 4 bit-per-pixel (16 colors/gray shades) . . . . . . . . . . . . . . . . . . . . 13 3.4 eight bit-per-pixel (256 colors) . . . . . . . . . . . . . . . . . . . . . . . 14 4 look-up table (lut) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 look-up table registers . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2 look-up table organization . . . . . . . . . . . . . . . . . . . . . . . . 17 4.2.1 color modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.2.2 gray shade modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5 advanced techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.1 virtual display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.1.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.1.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2 panning and scrolling . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.2.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.2.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.3 split screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.3.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5.3.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6 lcd power sequencing and power save modes . . . . . . . . . . . . . . . . . . . 35 6.1 lcd power sequencing . . . . . . . . . . . . . . . . . . . . . . . . . . 35 6.2 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 6.3 lcd enable/disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7 hardware rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 7.1 introduction to hardware rotation . . . . . . . . . . . . . . . . . . . . . . 3 7 7.2 default portrait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.3 alternate portrait mode . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.4 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.5 limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 7.6 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
page 4 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 8 identifying the s1d13705 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 9 hardware abstraction layer (hal) . . . . . . . . . . . . . . . . . . . . . . . . . . .48 9.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 9.2 contents of the hal_struct . . . . . . . . . . . . . . . . . . . . . . . .48 9.3 using the hal library . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 9.4 api for 13705hal . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 9.4.1 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.4.2 general hal support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 9.4.3 advanced hal functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 9.4.4 register / memory access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 9.4.5 power save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.4.6 drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 9.4.7 lut manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 9.5 porting libse to a new target platform . . . . . . . . . . . . . . . . . . . . .64 9.5.1 building the libse library for sh3 target example . . . . . . . . . . . . . . . . . 65 9.5.2 building the hal library for the target example . . . . . . . . . . . . . . . . . . . 65 10 sample code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 10.1 sample code using the s1d13705 hal api . . . . . . . . . . . . . . . . . . .66 10.2 sample code without using the s1d13705 hal api . . . . . . . . . . . . . . . .68 10.3 header files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
epson research and development page 5 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 list of tables table 2-1: s1d13705 initialization sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: recommended lut values for 1 bpp color mode . . . . . . . . . . . . . . . . . . . . 17 table 4-2: example lut values for 2 bpp color mode . . . . . . . . . . . . . . . . . . . . . . . 18 table 4-3: suggested lut values to simulate vga default 16 colo r palette . . . . . . . . . . . 19 table 4-4: suggested lut values to simulate vga default 256 co lor palette . . . . . . . . . . . 20 table 4-5: recommended lut values for 1 bpp gray shade . . . . . . . . . . . . . . . . . . . . 22 table 4-6: suggested values for 2 bpp gray shade . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 4-7: suggested lut values for 4 bpp gray shade . . . . . . . . . . . . . . . . . . . . . . 24 table 5-1: number of pixels panned using start address . . . . . . . . . . . . . . . . . . . . . . 28 table 7-1: default and alternate portrait mode comparison . . . . . . . . . . . . . . . . . . . . . 42 table 9-1: hal functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 list of figures figure 3-1: pixel storage for 1 bpp (2 colors/gray shades) in one byte of display buffer . . . . . 12 figure 3-2: pixel storage for 2 bpp (4 colors/gray shades) in one byte of display buffer . . . . . 13 figure 3-3: pixel storage for 4 bpp (16 colors/gray shades) in one byte of display buffer . . . . 13 figure 3-4: pixel storage for 8 bpp (256 colors) in one byte of display buffer . . . . . . . . . . . 14 figure 5-1: viewport inside a virtual display . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 figure 5-2: 320x240 single panel for split screen . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 7-1: relationship between the default mode screen image and the image refreshed by s1d13705 38 figure 7-2: relationship between the alternate mode screen image and the image refreshed by s1d13705 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
page 6 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 this page left blank
epson research and development page 7 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 1 introduction this guide demonstrates how to program the s1d13705 embedded memory color lcd controller. the guide presents the basic concepts of the lcd controller and provides methods to directly program the registers. it explains some of the advanced techniques used and the special features of the s1d13705. the guide also introduces the hardware abstraction layer (hal), which is designed to make programming the s1d13705 as easy as possible. future s1d1370x products will support the hal allowing oems the ability to upgrade to future chips with relative ease.
page 8 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 2 initialization prior to doing anything else with the s1d13705 the controller must be initialized. initial- ization is the process of setting up the control registers to a known state in order to generate proper display signals. 2.1 display buffer location before we can perform the initialization we have to know where to find the s1d13705 display memory and control registers. the s1d13705 contains 80 kilobytes of internal display memory. external support logic must be employed to decode the starting address for this display memory in cpu address space. on the s5u13705b00x pc platform evaluation boards the address is usually fixed at f00000h. alternatively the address can be set to d0000h. the control registers are located by adding 1ffe0h (128 kb less 32 bytes) to the base memory address. thus, on the typical pc platform, we access control register 0 at address f1ffe0h. control register 5 would be located at address f1ffe5, etc. 2.2 register values this section describes the register settings and sequence of setting the registers. in addition to these setting the look-up table must be programmed with appropriate colors. look-up table setup is not covered here. see section 4 on page 15 of this manual for look-up table programming details. the following initialization, presented in table form, shows the sequences and values to set the registers. the notes column comments the reason for the particular value being written. this example writes to all the necessary registers. initially, when the s1d13705 is powered up, all registers, unless noted otherwise in the specification, are set to zero. this example programs these registers to zero to establish a known state. in practice, it may be possible to write to only a subset of the registers. the example initializes a s1d13705 to control a panel with the following specifications:  320x240 color single passive lcd panel at 70hz.  color format 2, 8-bit data interface.  8 bit-per-pixel (256 colors).  6 mhz input clock (clki).
epson research and development page 9 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 2.3 frame rate calculation frame rate specifies the number of complete frame which are drawn on the display in one second. configuring a frame rate that is too high or too low adversely effects the quality of the displayed image. system configuration imposes certain non-variable limitations. for instance the width and height of the display panel are fixed as is, typically, the input clock to the s1d13705. from the following formula it is evident that the two variables the programmer can use to adjust frame rate are horizontal and vertical non-display periods. table 2-1: s1d13705 initialization sequence register value (hex) notes see also [01] 0010 0011 (23) select a passive, single, color panel with an 8-bit data width [02] 1100 0000 (c0) select 8-bit per pixel color depth [03] 0000 0011 (03) select normal power operation [04] 0010 0111 (27) horizontal display size = (reg[04]+1)*8 = (39+1) * 8 = 320 pixels [05] 1110 1111 (ef) vertical display size = reg[06][05] + 1 = 0000 0000 1110 1111 + 1 = 239 +1 = 240 lines [06] 0000 0000 (00) [07] 0000 0000 (00) fpline start position (only required for tft configuration) [08] 0000 0000 (00) horizontal non-display period = (reg[08] + 4) * 8 = 4 * 8 = 32 pixels frame rate calculation [09] 0000 0000 (00) fpframe start position (only required for tft configuration) [0a] 0000 0011 (03) vertical non-display period = reg[0a] = 3 lines frame rate calculation [0b] 0000 0000 (00) mod rate is only required by some monochrome panels [0c] 0000 0000 (00) screen 1 start address - set to 0 for initialization split screen on page 31 [0d] 0000 0000 (00) [0e] 0000 0000 (00) screen 2 start address - set to 0 for initialization split screen on page 31 [0f] 0000 0000 (00) [10] 0000 0000 (00) screen 1 / screen 2 start address msb - set to 0 [11] 0000 0000 (00) memory address offset - not virtual setup - so set to 0 virtual display on page 25 [12] 1111 1111 (ff) set the vertical size to the maximum value. split screen on page 31 [13] 0000 0011 (03) [15] leave the lut alone for now look-up table (lut) on page 15 [17] [18] 0000 0000 (00) gpio control and status registers - set to ?0?. [19] 0000 0000 (00) [1a] 0000 0000 (00) set the scratch pad bits to ?0?. [1b] 0000 0000 (00) this is not portrait mode so set this register to ?0?. introduction to hardware rotation on page 37 [1c] 0000 0000 (00) line byte count is only required for portrait mode.
page 10 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 the following are the formulae for determining the frame rate of a panel. the formula for a single passive or tft panel is calculated as follows: for a dual passive panel the formula is: where: pclk = pixel clock (in hz) hdp = horizontal display period (in pixels) hndp = horizontal non-display period (in pixels) vdp = vertical display period (in lines) vndp = vertical non-display period (in lines) in addition to varying the hndp and vndp times we can also select divider values which will reduce clki to one half, one quarter up to one eight of the clki value. the example below is a portion of a ?c? routine to calculate hndp and vndp from a desired frame rate. for (int loop = 0; loop < 2; loop++) { for (vndp = 2; vndp < 0x3f; vndp += 3) { // solve for hndp hndp = (pclk / (framerate * (vdp + vndp))) - hdp; if ((hndp >= 32) && (hndp <= 280)) { // solve for vndp. vndp = (pclk / (framerate * (hdp + hndp))) - vdp; // if we have satisfied vndp then we're done. if ((vndp >= 0) && (vndp <= 0x3f)) goto donecalc; } } // divide clki and try again. // (reg[02] allows us to dived clki by 2) pclk /= 2; } // if we still can't hit the frame rate - throw an error. if ((vndp < 0) || (vndp > 0x3f) || (hndp < 32) || (hndp > 280)) { sprintf("error: unable to set the desired frame rate.\n"); exit(1); } framerate pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate pclk 2 hdp hndp + () vdp 2 ------------ v n d p + ?? ?? -------------------------------------------------------------------------------------------------- - =
epson research and development page 11 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 this routine first performs a formula rearrangement so that hndp or vndp can be solved. start with vndp set to a small value. loop increasing vndp and solving the equation for hndp until satisfactory hndp and vndp values are found. if no satisfactory values are found then divide clki and repeat the process. if a satisfactory frame rate still can?t be reached - return an error. note most passive (stn) panels are tolerant of nearly any combination of hndp and vndp values, however panel specifications generally specify only a few lines of vertical non- display period. the s1d13705 is capable of generating a vertical non-display period of up to sixty-three lines. this amount of vndp is far too great a non-display period and will likely degrade display quality. similarly, setting a large hndp value may cause a degrade in image quality. if possible the system should be designed such that vndp values of 7 or less lines and hndp values of 20 or less characters can be selected.
page 12 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 3 memory models the s1d13705 is capable of operating at four different color depths. for each color depth the data format is packed pixel. s1d13705 packed pixel modes can range from one byte containing eight adjacent pixels (1-bpp) to one byte containing just one pixel (8-bpp). packed pixel data may be envisioned as a stream of pixels. in this stream, pixels are packed in adjacent to each other. if a pixel requires four bits then it will be located in the four most significant bits of a byte. the pixel to the immediate right on the display will occupy the lower four bits of the same byte. the next two pixels to the immediate right are located in the following byte, etc. 3.1 1 bit-per-pixel (2 colors/gray shades) 1-bit pixels support two color/gray shades. in this memory format each byte of display buffer contains eight adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out appropriate bits and, if necessary, setting bits to ?1?. when using a color panel the two colors are derived by indexing into positions 0 and 1 of the look-up table. if the first two lut elements are set to black (rgb = 0 0 0) and white (rgb = f f f) then each ?0? bit of display memory will display as a black pixel and each ?1? bit will display as a white pixel. the two lut entries can be set to any desired colors, for instance red and green or cyan and yellow. for monochrome panels the two displayed gray shades are generated by indexing into the first two elements of the green component of the look-up table (lut). thus, by manip- ulating the green lut components we can set either of the two gray shades to any of sixteen possible levels. figure 3-1: pixel storage for 1 bpp (2 colors/gray shades) in one byte of display buffer bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 pixel 0pixel 1pixel 2pixel 3pixel 4pixel 5pixel 6pixel 7
epson research and development page 13 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 3.2 2 bit-per-pixel (4 colors/gray shades) 2-bit pixels support four color/gray shades. in this memory format each byte of display buffer contains four adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out the appropriate bits and, if necessary, setting bits to ?1?. color panels derive their four colors by indexing into positions 0 through 3 of the look-up table. these four lut entries can be set to any of the 4096 possible color combinations. monochrome panels derive four gray shades by indexing into the first four elements of the green component of the look-up table. any of the four lut entries can be set to any of the sixteen possible gray shades. figure 3-2: pixel storage for 2 bpp (4 colors/gray shades) in one byte of display buffer 3.3 4 bit-per-pixel (16 colors/gray shades) four bit pixels support 16 color/gray shades. in this memory format each byte of display buffer contains two adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out the upper or lower nibble (4 bits) and setting the appropriate bits to ?1?. color panels can display up to sixteen colors simultaneously. these sixteen colors are derived by indexing into the first sixteen elements of the look-up table. each of these colors may be selected from the 4096 possible available colors. on a monochrome panel the gray shades are generated by indexing into the first sixteen green components of the lut. each of these sixteen possible gray shades can be adjusted to any of the sixteen possible gray shades. for instance, one could program the first eight green lut entries to be 0 and the second green lut entries to be ffh. this would result in nibble values of 0 through 7 displaying as black and nibble values 8 through 0fh displaying as white. figure 3-3: pixel storage for 4 bpp (16 colors/gray shades) in one byte of display buffer bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 pixel 0 bit 1 pixel 0 bit 0 pixel 1 bit 1 pixel 1 bit 0 pixel 2 bit 1 pixel 2 bit 0 pixel 3 bit 1 pixel 3 bit 0 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 pixel 0 bit 3 pixel 0 bit 2 pixel 0 bit 1 pixel 0 bit 0 pixel 1 bit 3 pixel 1 bit 2 pixel 1 bit 1 pixel 1 bit 0
page 14 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 3.4 eight bit-per-pixel (256 colors) in eight bit-per-pixel mode one byte of display buffer represents one pixel on the display. at this color depth the read-modify-write cycles, required by the lessor pixel depths, are eliminated. when using a color panel, each byte of display memory acts as and index to one element of the lut. the displayed color is arrived at by taking the display memory value as an index into the lut. eight bit per pixel is not supported for monochrome display modes. the reason is that each element of the lut supports a 4-bit (sixteen value) level for red, green and blue. in monochrome display modes on the green value is used to set the gray intensity. thus we have sixteen possible grey values but, because of the color . figure 3-4: pixel storage for 8 bpp (256 colors) in one byte of display buffer bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 red bit 2 red bit 1 red bit 0 green bit 2 green bit 1 green bit 0 blue bit 1 blue bit 0
epson research and development page 15 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 4 look-up table (lut) this section is supplemental to the description of the look-up table architecture found in the s1d13705 hardware functional specification. covered here is a review of the lut registers, recommendations for the color and gray shade lut values, and additional programming considerations for the lut. refer to the s1d13705 hardware functional specification, document number x27a-a-001-xx for more detail. the s1d13705 look-up table consists of 256 indexed red/green/blue entries. each entry is 4 bits wide. two registers, reg[15h] and reg[17h], control access to the lut. each look-up table entry consists of a red, green, and blue component. each component consisting of four bits, or sixteen intensity levels. any look-up table element can be selected from a palette of 4096 (16x16x16) colors. in color display modes, pixel values are used as an index to an rgb value stored in the look-up table. in monochrome modes, pixel values still index into the lut, but only the green component is used to determine display intensity. the selected color depth determines how many index positions are used for image display. for example at one bit-per-pixel (bpp) only index positions 0 and 1 of the look-up table are used. at 4-bpp the first 16 index positions of the look-up table are used and at 8-bpp all 256 look-up table index positions are used. the look-up table mechanism itself consists of an index register and a data register. the index, or address, register determines which element of the look-up table will be accessed. after setting the index the lut may be read or written through the data register. the first data element read or written is the red component of the entry. subsequent read/write operations access the green and then the blue elements of the look-up table. the s1d13705 lut architecture is designed to provide a high degree of similarity in operation to a standard vga ramdac. however, there are two considerations which must be kept in mind.  the s1d13705 look-up table has four bits (16 levels) of intensity per primary color. the standard vga ramdac has six bits (64 levels). this four to one difference must be taken into consideration when converting from a vga palette to a lut palette. one suggestion is to divide the vga intensity level by four to arrive at the lut intensity. however, most applications specify the red, green and blue components as eight bit intensities. to determine the appropriate s1d13705 look-up table value we recom- mend using the four most significant bits.
page 16 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 4.1 look-up table registers lut address the lut address register selects which of the 256 lut entries will be accessed. after three successive reads/writes to the data register this register is automatically incremented to point to the next address. lut data this register is where the 4-bit red/green/blue data value is written/read. immediately after setting the lut index with register [15h] this register accesses the red element of the look- up table. with each successive write/read the internal bank select is incremented. thus the second access is from the green element and the third is from the blue element. after the third access the lut address is incremented by one, then next access to this register will be the red element of the next look-up table index. reg[15h] look-up table address register read/write lut address bit 7 lut address bit 6 lut address bit 5 lut address bit 4 lut address bit 3 lut address bit 2 lut address bit 1 lut address bit 0 reg[17h] look-up table data register read/write lut data bit 3 lut data bit 2 lut data bit 1 lut data bit 0 n/a n/a n/a n/a
epson research and development page 17 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 4.2 look-up table organization 4.2.1 color modes 1 bpp color when the s1d13705 is configured for 1 bpp color mode, the lut is limited to selecting colors from the first two entries. the two lut entries can be any two rgb values but are typically set to black-and-white. each byte in the display buffer contains eight adjacent pixels. if a bit has a value of ?0? then the color in lut 0 index is displayed. a bit value of ?1? results in the color in lut 1 index being displayed. the following table shows the recommended values for obtaining a black-and-white mode while in 1 bpp on a color panel. table 4-1: recommended lut values for 1 bpp color mode index red green blue 00 00 00 00 01 f0 f0 f0 02 00 00 00 ... 00 00 00 ff 00 00 00 unused entries
page 18 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 2 bpp color when the s1d13705 is configured for 2 bpp color mode, the displayed colors are selected from the first four entries of the look-up table. the lut entries may be set to any of the 4096 possible colors. each byte in the display buffer contains four adjacent pixels. if a bit combination has a value of ?00? then the color in lut index 0 is displayed. a bit value of ?01? results in the color in lut index 1 being displayed. likewise the bit combination of ?10? displays from the third lut entry and ?11? displays a color from the fourth lut entry. the following table shows the example values for 2 bit-per-pixel display mode. table 4-2: example lut values for 2 bpp color mode index red green blue 00 00 00 00 01 70 70 70 02 a0 a0 a0 03 f0 f0 f0 04 00 00 00 ... 00 00 00 ff 00 00 00 indicates unused entries
epson research and development page 19 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 4 bpp color when the s1d13705 is configured for 4 bpp color mode, the displayed colors are selected from the first sixteen entries of the look-up table. the lut entries may be set to any of the 4096 possible colors. each byte in the display buffer contains two adjacent pixels. if a nibble has a value of ?0000? then the color in lut index 0 is displayed. a nibble value of ?0001? results in the color in lut index 1 being displayed. the pattern continues to the nibble pattern of ?1111? which results in the sixteenth color of the look-up table being displayed. the following table shows the example values for 4 bit-per-pixel display mode. these colors simulate the colors used by the sixteen color modes of a vga. table 4-3: suggested lut values to simulate vga default 16 color palette index red green blue 00 00 00 00 01 00 00 a0 02 00 a0 00 03 00 a0 a0 04 a0 00 00 05 a0 00 a0 06 a0 a0 00 07 a0 a0 a0 08 00 00 00 09 00 00 f0 0a 00 f0 00 0b 00 f0 f0 0c f0 00 00 0d f0 00 f0 0e f0 f0 00 0f f0 f0 f0 10 00 00 00 ... 00 00 00 ff 00 00 00 indicates unused entries
page 20 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 8 bpp color when the s1d13705 is configured for 8 bpp color mode the entire look-up table is used to display images. each of the lut entries may be set to any of the 4096 possible colors. each byte in the display buffer represents one pixels. the byte value is used directly as an index into one of the 256 lut entries. a display memory byte with a value of 00h will display the color contained in the first look-up table entry while a display memory byte of ffh will display a color formed byte the two hundred and fifty sixth look-up table entry. the following table depicts lut values which approximate the vga default 256 color palette. table 4-4: suggested lut values to simulate vga default 256 color palette index r g b index r g b index r g b index r g b 00 00 00 00 40 f0 70 70 80 30 30 70 c0 00 40 00 01 00 00 a0 41 f0 90 70 81 40 30 70 c1 00 40 10 02 00 a0 00 42 f0 b0 70 82 50 30 70 c2 00 40 20 03 00 a0 a0 43 f0 d0 70 83 60 30 70 c3 00 40 30 04 a0 00 00 44 f0 f0 70 84 70 30 70 c4 00 40 40 05 a0 00 a0 45 d0 f0 70 85 70 30 60 c5 00 30 40 06 a0 50 00 46 b0 f0 70 86 70 30 50 c6 00 20 40 07 a0 a0 a0 47 90 f0 70 87 70 30 40 c7 00 10 40 08 50 50 50 48 70 f0 70 88 70 30 30 c8 20 20 40 09 50 50 f0 49 70 f0 90 89 70 40 30 c9 20 20 40 0a 50 f0 50 4a 70 f0 b0 8a 70 50 30 ca 30 20 40 0b 50 f0 f0 4b 70 f0 d0 8b 70 60 30 cb 30 20 40 0c f0 50 50 4c 70 f0 f0 8c 70 70 30 cc 40 20 40 0d f0 50 f0 4d 70 d0 f0 8d 60 70 30 cd 40 20 30 0e f0 f0 50 4e 70 b0 f0 8e 50 70 30 ce 40 20 30 0f f0 f0 f0 4f 70 90 f0 8f 40 70 30 cf 40 20 20 10 00 00 00 50 b0 b0 f0 90 30 70 30 d0 40 20 20 11 10 10 10 51 c0 b0 f0 91 30 70 40 d1 40 20 20 12 20 20 20 52 d0 b0 f0 92 30 70 50 d2 40 30 20 13 20 20 20 53 e0 b0 f0 93 30 70 60 d3 40 30 20 14 30 30 30 54 f0 b0 f0 94 30 70 70 d4 40 40 20 15 40 40 40 55 f0 b0 e0 95 30 60 70 d5 30 40 20 16 50 50 50 56 f0 b0 d0 96 30 50 70 d6 30 40 20 17 60 60 60 57 f0 b0 c0 97 30 40 70 d7 20 40 20 18 70 70 70 58 f0 b0 b0 98 50 50 70 d8 20 40 20 19 80 80 80 59 f0 c0 b0 99 50 50 70 d9 20 40 20 1a 90 90 90 5a f0 d0 b0 9a 60 50 70 da 20 40 30 1b a0 a0 a0 5b f0 e0 b0 9b 60 50 70 db 20 40 30
epson research and development page 21 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 1c b0 b0 b0 5c f0 f0 b0 9c 70 50 70 dc 20 40 40 1d c0 c0 c0 5d e0 f0 b0 9d 70 50 60 dd 20 30 40 1e e0 e0 e0 5e d0 f0 b0 9e 70 50 60 de 20 30 40 1f f0 f0 f0 5f c0 f0 b0 9f 70 50 50 df 20 20 40 20 00 00 f0 60 b0 f0 b0 a0 70 50 50 e0 20 20 40 21 40 00 f0 61 b0 f0 c0 a1 70 50 50 e1 30 20 40 22 70 00 f0 62 b0 f0 d0 a2 70 60 50 e2 30 20 40 23 b0 00 f0 63 b0 f0 e0 a3 70 60 50 e3 30 20 40 24 f0 00 f0 64 b0 f0 f0 a4 70 70 50 e4 40 20 40 25 f0 00 b0 65 b0 e0 f0 a5 60 70 50 e5 40 20 30 26 f0 00 70 66 b0 d0 f0 a6 60 70 50 e6 40 20 30 27 f0 00 40 67 b0 c0 f0 a7 50 70 50 e7 40 20 30 28 f0 00 00 68 00 00 70 a8 50 70 50 e8 40 20 20 29 f0 40 00 69 10 00 70 a9 50 70 50 e9 40 30 20 2a f0 70 00 6a 30 00 70 aa 50 70 60 ea 40 30 20 2b f0 b0 00 6b 50 00 70 ab 50 70 60 eb 40 30 20 2c f0 f0 00 6c 70 00 70 ac 50 70 70 ec 40 40 20 2d b0 f0 00 6d 70 00 50 ad 50 60 70 ed 30 40 20 2e 70 f0 00 6e 70 00 30 ae 50 60 70 ee 30 40 20 2f 40 f0 00 6f 70 00 10 af 50 50 70 ef 30 40 20 30 00 f0 00 70 70 00 00 b0 00 00 40 f0 20 40 20 31 00 f0 40 71 70 10 00 b1 10 00 40 f1 20 40 30 32 00 f0 70 72 70 30 00 b2 20 00 40 f2 20 40 30 33 00 f0 b0 73 70 50 00 b3 30 00 40 f3 20 40 30 34 00 f0 f0 74 70 70 00 b4 40 00 40 f4 20 40 40 35 00 b0 f0 75 50 70 00 b5 40 00 30 f5 20 30 40 36 00 70 f0 76 30 70 00 b6 40 00 20 f6 20 30 40 37 00 40 f0 77 10 70 00 b7 40 00 10 f7 20 30 40 38 70 70 f0 78 00 70 00 b8 40 00 00 f8 00 00 00 39 90 70 f0 79 00 70 10 b9 40 10 00 f9 00 00 00 3a b0 70 f0 7a 00 70 30 ba 40 20 00 fa 00 00 00 3b d0 70 f0 7b 00 70 50 bb 40 30 00 fb 00 00 00 3c f0 70 f0 7c 00 70 70 bc 40 40 00 fc 00 00 00 3d f0 70 d0 7d 00 50 70 bd 30 40 00 fd 00 00 00 3e f0 70 b0 7e 00 30 70 be 20 40 00 fe 00 00 00 3f f0 70 90 7f 00 10 70 bf 10 40 00 ff 00 00 00 table 4-4: suggested lut values to simulate vga default 256 color palette (continued) index r g b index r g b index r g b index r g b
page 22 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 4.2.2 gray shade modes gray shade modes are monochrome display modes. monochrome display modes use the look-up table in a very similar fashion to the color modes. this most significant difference is that the monochrome display modes use only the intensity of the green element of the look-up table to form the gray level. one side effect of using only green for intensity selection is that in gray shade modes there are only sixteen possible intensities. 8 bit-per-pixel is not supported for gray shade modes. 1 bpp gray shade when the s1d13705 is configured for 1 bpp gray shade mode, the lut is limited to selecting colors from the first two green entries. the two lut entries can be set to any of sixteen possible intensities. typically they would be set to 0h (black) and fh (white). each byte in the display buffer contains eight adjacent pixels. if a bit has a value of ?0? then the color in the green lut 0 index is displayed. a bit value of ?1? results in the color in green lut 1 index being displayed. the following table shows the recommended values 1 bpp gray shade display mode. 2 bpp gray shade when the s1d13705 is configured for 2 bpp gray shade, the displayed colors are selected from the first four green entries in the look-up table. the remaining entries of the lut are unused. each of the four entries can be set to any of the sixteen possible colors. each byte in the display buffer contains four adjacent pixels. if a bit combination has a value of ?00? then the intensity in the green lut index 0 is displayed. a bit value of ?01? results in the intensity represented by the green in lut index 1 being displayed. likewise the bit combination of ?10? displays from the third lut entry and ?11? displays a from the fourth lut entry. table 4-5: recommended lut values for 1 bpp gray shade address red green blue 00 00 00 00 01 00 f0 00 02 00 00 00 ... 00 00 00 ff 00 00 00 unused entries
epson research and development page 23 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 the following table shows the example values for 2 bit-per-pixel display mode. table 4-6: suggested values for 2 bpp gray shade index red green blue 0 00 00 00 1 00 50 00 2 00 a0 00 3 00 f0 00 4 00 00 00 ... 00 00 00 ff 00 00 00 indicates unused entries
page 24 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 4 bpp gray shade when the s1d13705 is configured for 4 bpp gray shade mode the displayed colors are selected from the green values of the first sixteen entries of the look-up table. each of the sixteen entries can be set to any of the sixteen possible intensity levels. each byte in the display buffer contains two adjacent pixels. if a nibble pattern is ?0000? then the green intensity of lut index 0 is displayed. a nibble value of ?0001? results in the green intensity in lut index 1 being displayed. the pattern continues to the nibble pattern of ?1111? which results in the sixteenth intensity of look-up table being displayed. the following table shows the example values for 4 bit-per-pixel display mode. table 4-7: suggested lut values for 4 bpp gray shade index red green blue 00 00 00 00 01 00 10 00 02 00 20 00 03 00 30 00 04 00 40 00 05 00 50 00 06 00 60 00 07 00 70 00 08 00 80 00 09 00 90 00 0a 00 a0 00 0b 00 b0 00 0c 00 c0 00 0d 00 d0 00 0e 00 e0 00 0f 00 f0 00 10 00 00 00 ... 00 00 00 ff 00 00 00 indicates unused entries
epson research and development page 25 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 5 advanced techniques this section contains programming suggestions for the following:  virtual display  panning and scrolling  split screen display 5.1 virtual display virtual display refers to the situation where the image to be viewed is larger than the physical display. the difference can be in the horizontal, vertical or both dimensions. to view the image, the display is used as a window into the display buffer. at any given time only a portion of the image is visible. panning and scrolling are used to view the full image. the memory address offset register determines the number of horizontal pixels in the virtual image. the offset register can be used to specify from 0 to 255 additional words for each scan line. at 1 bpp, 255 words span an additional 4,080 pixels. at 8 bpp, 255 words span an additional 510 pixels. the maximum vertical size of the virtual image is the result of dividing 81920 bytes of display memory by the number of bytes on each line (i.e. at 1 bpp with a 320x240 panel set for a virtual width of 640x480 there is enough memory for 1024 lines). figure 5-1: ?viewport inside a virtual display,? depicts a typical use of a virtual display. the display panel is 320x240 pixels, an image of 640x480 pixels can be viewed by navigating a 320x240 pixel viewport around the image using panning and scrolling. figure 5-1: viewport inside a virtual display 320x240 viewport 640x480 ?virtual? display
page 26 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 5.1.1 registers memory address offset register reg[11h] forms an 8-bit value called the memory address offset. this offset is the number of additional words on each line of the display. if the offset is set to zero there is no virtual width. note this value does not represent the number of words to be shown on the display. the dis- play width is set in the horizontal display width register. 5.1.2 examples example 1: in this example we go through the calculations to display a 640x480 im- age on a 320x240 panel at 2 bpp. step 1: calculate the number of pixels per word for this color depth. at 2 bpp each byte is comprised of 4 pixels, therefore each word contains 8 pixels. pixels_per_word = 16 / bpp = 16 / 2 = 8 step 2: calculate the memory address offset register value we require a total of 640 pixels. the horizontal display register will account for 320 pixels, this leaves 320 pixels for the memory address offset register to account for. offset = pixels / pixels_per_word = 320 / 8 = 40 = 28h the memory address offset register, reg[11h], will have to be set to 28h to satisfy the above condition. reg[11h] memory address offset register memory address offset bit 7 memory address offset bit 6 memory address offset bit 5 memory address offset bit 4 memory address offset bit 3 memory address offset bit 2 memory address offset bit 1 memory address offset bit 0
epson research and development page 27 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 example 2: from the above, what is the maximum number of lines our image can contain? step 1: calculate the number of bytes on each line. bytes_per_line = pixels_per_line / pixels_per_byte = 640 / 4 = 160 each line of the display requires 160 bytes. step 2: calculate the number of lines the s1d13705 is capable of. total_lines = memory / bytes_per_line = 81920 / 160 = 512 we can display a maximum of 512 lines. our example image requires 480 lines so this example can be done. 5.2 panning and scrolling panning and scrolling describe the operation of moving a physical display viewport about a virtual image in order to view the entire image a portion at time. for example, after setting up the previous example (virtual display) and drawing an image into it we would only be able to view one quarter of the image. panning and scrolling are used to reveal the rest of the image. panning describes the horizontal (side to side) motion of the viewport. when panning to the right the image in the viewport appears to slide to the left. when panning to the left the image to appears to slide to the right. scrolling describes the vertical (up and down) motion of the viewport. scrolling down causes the image to appear to slide up and scrolling up causes the image to appear to slide down. both panning and scrolling are performed by modifying the start address register. the start address registers in the s1d13705 are a word offset to the data to be displayed in the top left corner of a frame. changing the start address by one means a change on the display of the number of pixels in one word. the number of pixels in word varies according to the color depth. at 1 bit-per-pixel a word contains sixteen pixels. at 2 bit-per-pixel there are eight pixels, at 4 bit-per-pixel there are four pixels and at 8 bit-per-pixel there is two pixels in each word. the number of pixels in each word represent the finest step we can pan to the left or right. when portrait mode (see hardware rotation on page 37) is enabled the start address registers become offsets to bytes. in this mode the step rate for the start address registers if halved making for smoother panning.
page 28 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 5.2.1 registers screen 1 start address registers these three registers form the seventeen bit screen 1 start address. screen 1 is displayed starting at the top left corner of the display. in landscape mode these registers form the word offset to the first byte in display memory to be displayed in the upper left corner of the screen. changing these registers by one will shift the display image 2 to 16 pixels, depending on the current color depth. in portrait mode these registers form the offset to the display memory byte where screen 1 will start displaying. changing these registers in portrait mode will result in a shift of 1 to 8 pixels depending on the color depth. refer to table 5-1: ?number of pixels panned using start address? to see the minimum number of pixels affected by a change of one to these registers reg[0ch] screen 1 display start address 0 (lsb) start addr bit 7 start addr bit 6 start addr bit 5 start addr bit 4 start addr bit 3 start addr bit 2 start addr bit 1 start addr bit 0 reg[0dh] screen 1 display start address 1 (msb) start addr bit 15 start addr bit 14 start addr bit 13 start addr bit 12 start addr bit 11 start addr bit 10 start addr bit 9 start addr bit 8 reg[10h] screen 1 display start address 2 (msb) n/a n/a n/a n/a n/a n/a n/a start addr bit 16 table 5-1: number of pixels panned using start address color depth (bpp) pixels per word landscape mode number of pixels panned pixels per byte portrait mode number of pixels panned 116 16 8 8 28 8 4 4 44 4 2 2 82 2 1 1
epson research and development page 29 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 5.2.2 examples for the following examples we base our calculations on a 4 bit-per-pixel image displayed on a 256w x 64h panel. we have set up a virtual size of 320w x 240h. width is greater than height so we are in landscape display mode. refer to section 2, ?initialization? on page 8 and section 5.1, ?virtual display? on page 25 for assistance with these settings. these examples are shown using a c-like syntax. example 3: panning (right and left) to pan to the right increase the start address value by one. to pan to the left decrease the start address value. keep in mind that, with the exception of 8 bit-per-pixel portrait display mode, the display will jump by more than one pixel as a result of changing the start address registers. panning to the right. startword = getstartaddress(); startword ++; setstartaddress(startword); panning to the left. startword = getstartaddress(); startword --; if (startword < 0) startword = 0; setstartaddress(startword); the routine getstartaddress() is one which will read the start address registers and return the start address as a long value. it would be written similar to: long getstartaddress() { return ((reg[10] & 1) * 65536) + (reg[0d] * 256) + (reg[0c]); } the routine setstartaddress() break up its long integer argument into three register values and store the values. void setstartaddress(long sa) { reg[0c] = sa & 0xff; reg[0d] = (sa >> 8) & 0xff; reg[10] = (sa >> 16) & 0xff; } in this example code the notation reg[] refers to whatever mechanism is employed to read/write the registers.
page 30 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 example 4: scrolling (up and down) to scroll down, increase the value in the screen 1 display start address register by the number of words in one virtual scan line. to scroll up, decrease the value in the screen 1 display start address register by the number of words in one virtual scan line. a virtual scan line includes both the number of bytes required by the physical display and any extra bytes that may be being used for creating a virtual width on the display. the previous dimensions are still in effect for this example (i.e. 320w x 240h virtual size, 256h x 64w physical size at 4 bpp) step 1: determine the number of words in one virtual scanline. bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160 words_per_line = bytes_per_line / 2 = 160 /2 = 80 step 2: scroll up or down to scroll up. startword = getstartaddress(); startword -= words_per_line; if (startword < 0) startword = 0; setstartaddress(startword); to scroll down. startword = getstartaddress(); startword += words_per_line; setstartaddress(startword); }
epson research and development page 31 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 5.3 split screen occasionally the need arises to display two different but related images. take, for example, a game where the main play area requires rapid updates and game status, displayed at the bottom of the screen, requires infrequent updates. the split screen feature of the s1d13705 allows a programmer to setup a display in such a manor. when correctly configured the programmer has only to update the main area on a regular basis. occasionally, as the need arises, the secondary area is updated. the figure below illustrates how a 320x240 panel may be configured to have one image displaying from scan line 0 to scan line 199 and image 2 displaying from scan line 200 to scan line 239. although this example picks specific values, the split between image 1 and image 2 may occur at any line of the display. figure 5-2: 320x240 single panel for split screen in split screen operation ?image 1" is taken from the display memory location pointed to by the screen 1 start address registers and is always located at the top of the screen. ?image 2" is taken from the display memory location pointed to by the screen 2 start address registers. the line where ?image 1" end and ?image 2" begins is determined by the screen 1 vertical size register. scan line 0 image 1 ... scan line 199 scan line 200 image 2 ... scan line 239 screen 1 vertical size registers = 199 lines
page 32 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 5.3.1 registers split screen operation is performed primarily by manipulating three register sets. screen 1 start address and screen 2 start address determine from where in display memory the first and second images will be taken from. the vertical size registers determine how many lines screen 1 will use. the following is a description of the registers used to do split screen. screen 1 vertical size these two registers form a ten bit value which determines the size of screen 1. when the vertical size is equal to or greater than the physical number of lines being displayed there is no visible effect on the display. when the vertical size value is less than the number of physical display lines, operation is like this: 1. from the beginning of a frame to the number of lines indicated by vertical size the dis- play data will come from the memory area pointed to by the screen 1 display start address. 2. after vertical size lines have been displayed the system will begin displaying data from the memory area pointed to by screen 2 display start address. on thing that must be pointed out here is that screen 1 memory is always displayed at the top of the screen followed by screen 2 memory. this relationship holds true regardless of where in display memory screen 1 start address and screen 2 start address are pointing. for instance, screen 2 start address may point to offset zero of display memory while screen 1 start address points to a location several thousand bytes higher. screen 1 will still be shown first on the display. while not particularly useful, it is even possible to set screen 1 and screen 2 to the same address. reg[12] screen 1 vertical size (lsb) bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 reg[13] screen 1 vertical size (msb) n/an/an/an/an/an/abit 9bit 8
epson research and development page 33 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 screen 2 start address registers these three registers form the seventeen bit screen 2 start address. screen 2 is always displayed immediately following the screen 1 data and will begin at the left-most pixel on a line. keep in mind that if the screen 1 vertical size is equal to or greater than the physical display then screen 2 will not be shown. in landscape mode these registers form the word offset to the first byte in display memory to be displayed. changing these registers by one will shift the display image 2 to 16 pixels, depending on the current color depth. the s1d13705 does not support split screen operation in portrait mode. screen 2 will never be used if portrait mode is selected. refer to table 5-1: ?number of pixels panned using start address? to see the minimum number of pixels affected by a change of one to these registers screen 1 start address registers, reg[0c], reg[0d] and reg[10] are discussed in section 5.2.1 on page 28 reg[0eh] screen 2 display start address 0 (lsb) start addr bit 7 start addr bit 6 start addr bit 5 start addr bit 4 start addr bit 3 start addr bit 2 start addr bit 1 start addr bit 0 reg[0fh] screen 2 display start address 1 (msb) start addr bit 15 start addr bit 14 start addr bit 13 start addr bit 12 start addr bit 11 start addr bit 10 start addr bit 9 start addr bit 8
page 34 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 5.3.2 examples example 5: display 200 scanlines of image 1 and 40 scanlines of image 2. image 2 is located first (offset 0) in the display buffer followed immediately by im- age 1. assume a 320x240 display and a color depth of 4 bpp. 1. calculate the screen 1vertical size register values. vertical_size = 200 = c8h write the vertical size lsb, reg[12h], with c8h and vertical size msb, reg[13h], with a 00h. 2. calculate the screen 1 start word address register values. screen 2 is located first in display memory, therefore we must calculate the number of bytes taken up by the screen 2 data. bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160 total bytes = bytes_per_line x lines = 160 x 40 = 6400. screen 2 requires 6400 bytes (0 to 6399) therefore the start address offset for screen 1 must be 6400 bytes. (6400 bytes = 3200 words = c80h words) set the screen 1 start word address msb, reg[0dh], to 0ch and the screen 1 start word address lsb, reg[0ch], to 80h. 3. calculate the screen 2 start word address register values. screen 2 display data is coming from the very beginning of the display buffer. all there is to do here is ensure that both the lsb and msb of the screen 2 start word address registers are set to zero.
epson research and development page 35 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 6 lcd power sequencing and power save modes 6.1 lcd power sequencing correct power sequencing is required to prevent long term damage to lcd panels and to avoid unsightly ?lines? during power-up and power-down. power sequencing allows the lcd power supply to discharge prior to shutting down the lcd logic signals. proper lcd power sequencing dictates there must be a time delay between the lcd power being disabled and the lcd signals being shut down. during power-up the lcd signals must be active prior to or when power is applied to the lcd. the time intervals vary depending on the power supply design. the s1d13705 performs automatic power sequencing in response to both software power save (reg[03h]) or in response to a hardware power save. one frame after a power save mode is set, the s1d13705 disables lcd power, and the lcd logic signals continue for one hundred and twenty seven frames allowing the lcd power supply to completely discharge. for most applications the internal power sequencing is the appropriate choice. there may be situations where the internal time delay is insufficient to discharge the lcd power supply before the lcd signals are shut down, or the delay is too long and the designer wishes to shorten it. this section details the sequences to manually power-up and power-down the lcd interface. 6.2 registers the lcd power (lcdpwr) override bit forces lcd power inactive one frame after being toggled. as long as this bit is ?1? lcd power will be disabled. the hardware power save enable bit must be set in order to activate hardware power save through gpio0. the software power save bits set and reset the software power save mode. these bits are set to ?11? for normal operation and set to ?00? for power save mode. lcd logic signals to the display panel are active for 128 frames after setting either hardware or software power save modes. power sequencing override is performed by setting the lcdpwr override bit some time before setting a power save mode for power off sequences. during power on sequences the power save mode is reset some time before the lcdpwr override is reset resulting in the lcd logic signals being active before power is applied to the panel. reg[03h] mode register 2 lcdpwr override hardware power save enable software power save bit 1 software power save bit 0
page 36 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 6.3 lcd enable/disable the descriptions below cover manually powering the lcd panel up and down. use the sequences described in this section if the power supply connected to the panel requires more than 127 frames to discharge on power-down, or if the panel requires starting the lcd logic well in advance of enabling lcd power. currently there are no known circumstances where the lcd logic must be active well in advance of lcd power. note if 127 frame period is to long, blank the display, then reprogram the horizontal and ver- tical sizes to produce a shorter frame period before using these methods. power on/enable sequence the following is a sequence for manually powering-up an lcd panel if lcd power had to be applied later than lcd logic. 1. set reg[03h] bit 3 (lcdpwr override) to ?1?. this ensures that lcd power will be held disabled. 2. enable lcd logic. this is done by either setting the gpio0 pin low to disable hard- ware power save mode and/or by setting reg[03h] bits 1-0 to ?11? to disable soft- ware power save. 3. count ?x? vertical non-display periods (optional). ?x? corresponds the length of time lcd logic must be enabled before lcd power-up, converted to the equivalent vertical non-display periods. for example, at 72 hz count- ing 36 non-display periods results in a one half second delay. 4. set reg[03h] bit 3 to ?0? to enable lcd power. power off/disable sequence the following is a sequence for manually powering-down an lcd panel. these steps would be used if the power supply discharge requirements are larger than the default 127 frames. 1. set reg[03h] bit 3 (lcdpwr override) to ?1? which will disable lcd power. 2. count ?x? vertical non-display periods. ?x? corresponds to the power supply discharge time converted to the equivalent verti- cal non-display periods. (see the previous example) 3. disable the lcd logic by setting the software power save in reg[03h] or setting hardware power save via gpio0. keep in mind that after setting the power save mode there will be 127 frames before the lcd logic signals are disabled.
epson research and development page 37 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 7 hardware rotation 7.1 introduction to hardware rotation many of todays applications use the lcd panel in a portrait orientation (typically lcd panels are landscape oriented). in this case it becomes necessary to ?rotate? the displayed image. this rotation can be done by software at the expense of performance or, as with the s1d13705, it can be done by hardware with no performance penalty. this discussion of display rotation is intended to augment the excellent description of the hardware functionality found in the hardware functional specification. the s1d13705 supports two portrait modes: default portrait mode and alternate portrait mode. 7.2 default portrait mode default portrait mode was designed to reduce power consumption for portrait mode use. the reduced power consumption comes with certain trade offs. the most obvious difference between the two modes is that default portrait mode requires the portrait width be a power of two, e.g. a 240-line panel, used in portrait mode, requires setting a virtual width of 256 pixels. also default portrait mode is only capable of scrolling the display in two line increments. the benefits to using default portrait mode lies in the ability to use a slower input clock and in reduced power consumption. the following figure depicts the ways to envision memory layouts for the s1d13705 in default portrait mode. this example uses a 320x240 panel.
page 38 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 figure 7-1: relationship between the default mode screen image and the image refreshed by s1d13705 from the programmers perspective the memory is laid out as shown on the left. the programmer accesses memory exactly as for a panel of with the dimensions of 240x320 setup to have a 256 pixel horizontal stride. the programmer sees memory addresses increasing from a->b and from b->c. from a hardware perspective the s1d13705 always refreshes the lcd panel in the order b->d and down to do a->c. 256 256 image seen by programmer = image in display buffer 320 portrait window 320 240 ab c d d c b a 240 start address portrait window display e e image refreshed by s1d13705 start address physical memory
epson research and development page 39 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 7.3 alternate portrait mode alternate portrait mode does not impose the power of two line width. to rotated the image on 240 line panel requires a portrait stride of 240 pixels. alternate portrait mode is capable of scrolling by one line at a time in response to changes to the start address registers. however, to achieve the same frame rate requires a 2 x faster input clock, therefore using more power. the following figure depicts the ways to envision memory layouts for the s1d13705 in alternate portrait mode. this example also uses a 320x240 panel. notice that in alternate portrait mode the stride may be as little as 240 pixels. figure 7-2: relationship between the alternate mode screen image and the image refreshed by s1d13705 from the programmers perspective the memory is laid out as shown on the left. the programmer accesses memory exactly as for a panel of with the dimensions of 240x320. the programmer sees memory addresses increasing from a->b and from b->c. from a hardware perspective the s1d13705 always refreshes the lcd panel in the order b->d and down to do a->c the greatest factor in selecting alternate portrait mode over default portrait mode would be for the ability to obtain an area of contiguous off screen memory. for example: a 640x480 panel in default portrait mode at two bit-per-pixel requires 81920 bytes (80 kb). there is unused memory but it is not contiguous. the same situation using alternate portrait mode requires 76800 bytes leaving 5120 bytes of contiguous memory available to the application. in fact the change in memory usage may make the difference between being able to run certain panels in portrait mode or not being able to do so. image seen by programmer = image in display buffer 480 portrait window 480 320 ab c d d c b a 320 start address portrait window display image refreshed by s1d13705 start address physical memory
page 40 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 7.4 registers this section describes the registers used to set portrait mode operation. the screen 1 start address registers must be set correctly for portrait mode. in portrait mode the start address registers form a byte offset, as opposed to a word offset, into display memory. the initial required offset is the portrait mode stride (in bytes) less one. the line byte count register informs the s1d13705 of the stride, in bytes, between two consecutive lines of display in portrait mode. the line byte count register only affects portrait mode operation and are ignored when the s1d13705 is in landscape display mode. the portrait mode register contains several items for portrait mode support. the first is the portrait mode enable bit. when this bit is ?0? the s1d13705 is in landscape mode and the remainder of the settings in this register as well as the line byte count in reg[1ch] are ignored. set this bit to ?1? to enable portrait mode. reg[0ch] screen 1 start word address lsb bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 reg[0dh] screen 1 start word address msb bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[0eh] screen 1 start word address msb n/a n/a n/a n/a n/a n/a n/a bit 16 reg[1ch] line byte count register bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 reg[1bh] portrait mode register portrait mode enable portrait mode select n/a n/a n/a portrait mode memory clock select portrait mode pixel clock select bit 1 portrait mode pixel clock select bit 0
epson research and development page 41 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 the portrait mode select bit selects between the ?default mode? and the ?alternate mode?. setting this bit to ?0? selects the default portrait mode while setting this bit to ?1? enables the alternate portrait mode. portrait mode memory clock select is another power saving measure which can be enabled if the final mclk value is less than or equal to 25 mhz. memory clock select results in the s1d13705 temporarily increasing the memory clock circuitry on cpu access and resuming the slower speed when the access is complete. this results in better performance while using the least power. in portrait display mode the clki (input clock) is routed to the portrait section of the s1d13705 as clk. from the clk signal the mclk value can be determined from table 8-8 of the hardware functional specification, document number x27a-a-001-xx. if mclk is determined to be less than or equal to 25 mhz then portrait mode memory clock select may be enabled.
page 42 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 7.5 limitations the only limitation to using portrait mode on the s1d13705 is that split screen operation is not supported. a comparison of the two portrait modes is as follows: table 7-1: default and alternate portrait mode comparison item default portrait mode alternate portrait mode memory requirements the width of the rotated image must be a power of 2. in most cases, a virtual image is required where the right-hand side of the virtual image is unused and memory is wasted. for example, a 320x480x4bpp image would normally require only 76,800 bytes - possible within the 80k byte address space, but the virtual image is 512x480x4bpp which needs 122,880 bytes - not possible. does not require a virtual image. clock requirements clk need only be as fast as the required pclk. mclk, and hence clk, need to be 2x pclk. for example, if the panel requires a 3mhz pclk, then clk must be 6mhz. note that 25mhz is the maximum clk, so pclk cannot be higher than 12.5mhz in this mode. power consumption lowest power consumption. higher than default mode. panning vertical panning in 2 line increments. vertical panning in 1 line increments. performance nominal performance. note that performance can be increased by increasing clk and setting mclk = clk (reg[1bh] bit 2 = 1). higher performance than default mode. note that performance can be increased by increasing clk and setting mclk = clk (reg[1bh] bit 2 = 1).
epson research and development page 43 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 7.6 examples example 6: enable default portrait mode for a 320x240 panel at 4 bpp. before switching to portrait mode from landscape mode, display memory should be cleared to make the user perceived transition smoother. images in display memory are not rotated automatically by hardware and a garbled image would be visible for a short period of time if video memory is not cleared. if alternate portrait is used then the clk signal is divided in half to get the pclk signal. if the input clock divide bit, in register[02] is set we can simply reset the divider. the result of this is a pclk of exactly the same frequency as we used for landscape mode and we can use the current horizontal and vertical non-display periods. if the input clock divide bit is not set then we must recalculate the frame rate based on the a pclk value. in this example we will bypass recalculation of the horizontal and vertical non-display times (frame rate) by selecting the default portrait mode scheme. 1. calculate and set the screen 1 start word address register. offsetbytes = (width x bitsperpixel / 8) - 1 = (256 x 4 / 8) -1 = 127 = 007fh (?width? is the width of the portrait mode display - in this case the next power of two greater than 240 pixels or 256.) set screen1 display start word address lsb (reg [0ch]) to 7fh and screen1 dis- play start word address msb (reg[0dh]) to 00h. 2. calculate the line byte count the line byte count also must be based on the power of two width. linebytecount = width x bitsperpixel / 8 = 256 x 4 / 8 = 128 = 80h. set the line byte count (reg[1c]) to 80h. 3. enable portrait mode. this example uses the default portrait mode scheme. if we do not change the portrait mode pixel clock select bits then we will not have to recalculate the non-display tim- ings to correct the frame rate. write 80h to the portrait mode register (reg[1bh]). the display is now configured for portrait mode use. offset zero into display memory will corresponds to the upper left corner of the display. the only item to keep in mind is that the count from the first pixel of one line to the first pixel of the next line (referred to as the ?stride?) is 128 bytes.
page 44 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 example 7: enable alternate portrait mode for a 320x240 panel at 4 bpp. note as we have to perform a frame rate calculation for this mode we need to know the fol- lowing panel characteristics: 320x240 8-bit color to be run at 80 hz with a 16 mhz in- put clock. as in the previous example, before switching to portrait mode, display memory should be cleared. images in display memory are not rotated automatically by hardware and the garbled image would be visible for a short period of time if video memory is not cleared. 1. calculate and set the screen 1 start word address register. offsetbytes = (width x bitsperpixel / 8) - 1 = (240 x 4 / 8) - 1 = 119 = 0077h set screen1 display start word address lsb (reg [0ch]) to 77h and screen1 dis- play start word address msb (reg[0dh]) to 00h. 2. calculate the line byte count. linebytecount = width x bitsperpixel / 8 = 240 x 4 / 8 = 120 = 78h. set the line byte count (reg[1c]) to 78h. 3. enable portrait mode. this example uses the alternate portrait mode scheme. we will not change the mclk autoswitch or pixel clock select settings. write c0h to the portrait mode register (reg[1bh]) 4. recalculate the frame rate dependents. this example assumes the alternate portrait mode scheme. in this scheme, without touching the pixel clock select bits the pclk value will be equal to clk/2. these examples don?t use the pixel clock select bits. the ability to divide the pclk value down further than the default values was added to the s1d13705 to support hardware portrait mode on very small panels. the pixel clock value has changed so we must calculate horizontal and vertical non-display times to reach the desired frame rate. rather than perform the frame rate calculations here i will refer the reader to the frame rate calculations in frame rate calculation on page 9 and simply ?arrive? at the following: horizontal non-display period = 88h vertical non-display period = 03h plugging the values into the frame rate calculations yields:
epson research and development page 45 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 for this example the horizontal non-display register [reg[08h]) needs to be set to 07h and the vertical non-display register (reg[0ah]) needs to be set to 03h. the 16,000,000/2 in the formula above represents the input clock being divided by two when this alternate portrait mode is selected. with the values given for this example we must ensure the input clock divide bit (reg[02h] b4) is reset (with the given values it was likely set as a result of the frame rate calculations for landscape display mode). no other registers need to be altered. the display is now configured for portrait mode use. offset zero of display memory corre- sponds to the upper left corner of the display. display memory is accessed exactly as it was for landscape mode. as this is the alternate portrait mode the power of two stride issue encountered with the default portrait mode is no longer an issue. the stride is the same as the portrait mode width. in this case 120 bytes. framerate pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate 16 000 000 ,, 2 ----------------------------- - 320 88 + () 240 3 + () ------------------------------------------------------- 8 0 . 6 9 ==
page 46 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 example 8: pan the above portrait mode image to the right by 4 pixels then scroll it up by 6 pixels. to pan by four pixels the start address needs to be advanced. 1. calculate the number of bytes to change start address by. bytes = pixels x bitsperpixel / 8 = 4 x 4 / 8 = 2 bytes 2. increment the start address registers by the just calculated value. in this case the value write to the start address register will be 81h (7fh + 2 = 81h) to scroll by 4 lines we have to change the start address by the offset of four lines of display. 1. calculate the number of bytes to change start address by. bytesperline = linebytecount = 128 bytes = lines x bytesperline = 4 x 128 = 512 = 200h 2. increment the start address registers by the just calculated value in this case 281h (81h + 200h) will be written to the screen 1 start address register set. set screen1 display start word address lsb (reg[0ch]) to 81h and screen1 dis- play start word address msb (reg[0dh]) to 02h.
epson research and development page 47 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 8 identifying the s1d13705 there are several similar products in the 135x and 137x lcd controller families. products which can share significant portions of a generic code base. it may be important for a program to identify between products at run time. identification of the s1d13705 can be performed any time after the system has been powered up by reading reg[00h], the revision code register. the six most significant bits form the product identification code and the two least significant bits form the product revision. from reset (power on) the steps to identifying the s1d13705 are as follows: 1. read reg[00h]. mask off the lower two bits, the revision code, to obtain the product code. 2. the product code for the s1d13705 is 024h.
page 48 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 9 hardware abstraction layer (hal) 9.1 introduction the hal is a processor independent programming library provided by epson. the hal was developed to aid the implementation of internal test programs, and provides an easy, consistent method of programming the s1d13705 on different processor platforms. the hal also allows for easier porting of programs between s1d1370x products. integral to the hal is an information structure (hal_struct) that contains configuration data on clocks, display modes, and default register values. this structure combined with the utility 13705cfg.exe allows quick customization of a program for a new target display or environment. using the hal keeps sample code simpler, although some programmers may find the hal functions to be limited in their scope, and may wish to program the s1d13705 without using the hal. 9.2 contents of the hal_struct the hal_struct below is contained in the file ?h al.h? and is required to use the hal library. typedef struct taghalstruct { char szidstring[16]; word wdetectendian; word wsize; byte regs [max_reg + 1]; dword dwclki; /* input clock frequency (in khz) */ dword dwdispmem; /* starting address of display buffer memory */ word wframerate; /* desired panel frame rate */ } hal_struct; within the regs array ia a structure which defines all the registers described in the s1d13705 hardware functional specification , document number x27a-a-001-xx. using the 13705cfg.exe utility you can adjust the content of the registers contained in hal_struct to allow for different lcd panel timing values and other default settings used by the hal. in the simplest case, the program only calls a few basic hal functions and the contents of the hal_struct are used to setup the s1d13705 for operation.
epson research and development page 49 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 9.3 using the hal library to utilize the hal library, the programmer must include two ?.h? files in their code. ?hal.h? contains the hal library function prototypes and structure definitions, and ?appcfg.h? contains the instance of the hal_struct that is defined in ?hal.h? and configured by 13705cfg.exe. for a more thorough example of using the hal see section 10.1, ?sample code using the s1d13705 hal api? on page 66. note many of the hal library functions have pointers as parameters. the programmer should be aware that little validation of these pointers is performed, so it is up to the programmer to ensure that they adhere to the interface and use valid pointers. programmers are recommended to use the highest warning levels of their compiler in order to verify the parameter types. 9.4 api for 13705hal this section is a description of the hal library application programmers interface (api). updates and revisions to the hal may include new functions not included in this documen- tation. table 9-1: hal functions function description initialization: seregisterdevice registers the s1d13705 parameters with the hal, calls seinithal if necessary. seregisterdevice must be the first hal function called by an application. sesetinit programs the s1d13705 for use with the default settings, calls sesetdisplaymode to do the work, clears display memory. note: either sesetinit or sesetdisplaymode must be called after calling seregisterdevice general hal support: segetid interpret the revision code register to determine chip id segethalversion return version information on the hal library segetlastusablebyte determine the offset of the last unreserved usable byte in the display buffer segetbytesperscanline determine the number of bytes or memory consumed per scan line in current mode segetscreensize determine the height and width of the display surface in pixels sedelay use the frame rate timing to delay for required seconds (requires registers to be initialized) sesethighperformance used in color modes less than 8-bpp to toggle the high performance bit on or off advanced hal functions: sesplitinit initialize split screen variables and setup start addresses sesplitscreen set the size of either the top or bottom screen sevirtinit initialize virtual screen mode setting x and y sizes sevirtmove pan/scroll the virtual screen surface(s) hardware rotate: sesethwrotate set the hardware rotation to either portrait or landscape sesetportraitmethod call before setting hardware portrait mode to set either default or alternate portrait mode
page 50 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 register / memory access: sesetreg write a byte value to the specified s1d13705 register segetreg read a byte value from the specified s1d13705 register sewritedisplaybytes write one or more bytes to the display buffer at the specified offset sewritedisplaywords write one or more words to the display buffer at the specified offset sewritedisplaydwords write one or more dwords to the display buffer at the specified offset sereaddisplaybyte read a byte from the display buffer from the specified offset sereaddisplayword read a word from the display buffer from the specified offset sereaddisplaydword read a dword from the display buffer from the specified offset color manipulation: sesetlut write to the look-up table (lut) entries starting at index 0 segetlut read from the lut starting at index 0 sesetlutentry write one lut entry (red, green, blue) at the specified index segetlutentry read one lut entry (red, green, blue) from the specified index sesetbitsperpixel set the color depth segetbitsperpixel determine the current color depth drawing: sesetpixel draw a pixel at (x,y) in the specified color segetpixel read pixel?s color at (x,y) sedrawline draw a line from (x1,y1) to (x2,y2) in specified color sedrawrect draw a rectangle from (x1,y1) to (x2,y2) in specified color power save: sesetpowersavemode control s1d13705 sw power save mode (enable/disable) table 9-1: hal functions (continued) function description
epson research and development page 51 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 9.4.1 initialization the following section describes the hal functions dealing with s1d13705 initialization. typically a programmer has only to concern themselves with calls to seregisterdevice() and sesetinit(). int seregisterdevice(const lphal_struc lphalinfo) description : this function registers the s1d13705 device parameters with the hal library. the device parameters include address range, re gister values, desired frame rate, etc., and are stored in the hal_struct structure pointed to by lphalinfo. additionally this routine allocates system memory as address space for accessing registers and the display buffer. parameters: lphalinfo - pointer to hal_struct information structure return value: err_ok - operation completed with no problems err_unknown_device - the hal was unable to find an s1d13705. note seregisterdevice() must be called before any other hal functions. no s1d13705 registers are changed by calling seregisterdevice(). sesetinit() description: configures the s1d13705 for operation. this function sets all the s1d13705 control registers to their default values. initialization of the s1d13705 is a two step process to accommodate those programs (e.g. 13705play.exe) which do not initialize the s1d13705 on start-up. parameters: none return value: err_ok - operation completed with no problems note after this call the look-up table will be set to a default state appropriate to the display type. unlike s1d1350x hal versions, this function does not call sesetdisplaymode as this function does not exist in the 13705 hal.
page 52 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 9.4.2 general hal support functions in this group do not fit into any specific category of support. they provide a miscellaneous range of support for working with the s1d13705 int segetid(int * pid) description: reads the s1d13705 revision code register to determine the chip product and revisions. the interpreted value is returned in pid. parameters: pid - pointer to an integer which will receive the controller id. s1d13705 values returned in pid are: - id_s1d13705_rev0 - id_unknown other hal libraries will return their respective controller ids upon detection of their controller. return value: err_ok - operation completed with no problems err_unknown_device - the hal was unable to identify the display controller. returned when pid returns id_unknown. void segethalversion(const char ** pversion, const char ** pstatus, const char **pstatusrevision) description: retrieves the hal library version. the return pointers are all to ascii strings. a typical return would be: *pversion == ?1.01? (hal version 1.01),*pstatus == ?b? (the 'b' is the beta designator), *pstatusrevision == ?5?. the programmer need only create pointers of const char type to pass as parameters (see example below). parameters: pversion - pointer to string to return the version in. - must point to an allocated string of size ver_size pstatus - pointer to a string to return the release status in. - must point to an allocated string of size status_size pstatusrevision - pointer to return the current revision of status. - must point to an allocated string of size stat_rev_size return value: none example: const char *pversion, *pstatus, *pstatusrevision; segethalversion( &pversion, &pstatus, &pstatusrevision);
epson research and development page 53 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 int sesetbitsperpixel(int bitsperpixel) description: this routine sets the display color depth. after performing validity checks to ensure the requested video mode can be set the appropriate registers are changed and the look-up table is set its default values appropriate to the color depth. this call is similar to a mode set call on a standard vga. parameter: bitsperpixel - desired color depth in bits per pixel. - valid arguments are: 1, 2, 4, and 8. return value: err_ok - operation completed with no problems err_failed- possible causes for this error include: 1) the desired frame rate may not be attainable with the specified input clock 2) the combination of width, height and color depth may require more memory than is available on the s1d13705. int segetbitsperpixel(int * pbitsperpixel) description: this function reads the s1d13705 registers to determine the current color depth and returns the result in pbitsperpixel . parameters: pbitsperpixel - pointer to an inte ger to receive current color depth. - return values will be: 1, 2, 4, or 8. return value: err_ok - operation completed with no problems int segetbytesperscanline(int * pbytes) description: determines the number of bytes per scan line of current display mode. it is assumed that the registers have already been correctly initialized before segetbytesper- scanline() is called (i.e. after initializing the hal, setting the display mode and adjusting the bits per pixel or other values). the number of bytes per scanline will include non-displayed bytes if the screen width is greater the display width, or in default portrait mode. parameters: pbytes - pointer to an integer to receive the number of bytes per scan line return value: err_ok - operation completed with no problems
page 54 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 int segetscreensize(int * width, int * height) description: retrieves the width and height in pixels of the display surface. the width and height are derived by reading the horizontal and ve rtical size registers and calculating the dimensions. virtual dimensions are not taken into account for this calculation. when the display is in portrait mode the dimensions will be swapped. (i.e. a 640x480 display in portrait mode will return a width of 480 and height of 640). parameters: width - pointer to an integer to receive the display width height - pointer to an integer to receive the display height return value: err_ok - the operation completed successfully int sedelay(int milliseconds) description: this function will delay for the length of time specified in ?milliseconds? before returning to the caller. this function was originally intended for non-pc platforms. information about how to access the timers was not always available however we do know frame rate and can use that for timing calculations. the s1d13705 registers must be initialized for this function to work correctly. on the pc platform this is simply a call to the c timing functions and is therefore independent of the register settings. parameters: milliseconds- time to delay in seconds return value: err_ok - operation completed with no problems err_failed- returned on non-pc platforms when the s1d13705 registers have not bee initialized int segetlastusablebyte(long * pllastbyte) description: this functions returns a pointer, as a long integer, to the last byte of usable display memory. the returned value never changes for the s1d13705. parameters: pllastbyte - pointer to a long integer to receive the offset to the last byte of display memory return value: err_ok - operation completed with no problems
epson research and development page 55 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 int sesethighperformance(bool onoff) description: this function call enables or disable the high performance bit of the s1d13705. when high performance is enabled then mclk equals pclk for all video display resolutions. in the high performance state cpu to video memory performance is improved at the cost of higher power consumption. when high performance is disabled then mclk ranges from pclk/1 at 8 bit-per-pixel to pclk/8 at 1 bit-per-pixel. without high performance cpu to video memory speeds are slower and the s1d13705 uses less power. parameters: onoff - a boolean value (defined in hal.h) to indicate whether to enable of disable high performance. return value: err_ok - operation completed with no problems 9.4.3 advanced hal functions advanced hal functions include the functions to support split, virtual and rotated displays. while the concept for using these features is advanced the hal makes actually using them easy. int sesetportraitmethod( int style ) description: this selects the portrait mode method to be used when sesethwrotate() is called to put the s1d13705 into portrait mode. parameters: style - call with style set to default (-1) to select default portrait mode - call with style set to any other valu e to select alternate portrait mode. return value: err_ok - operation completed with no problems err_failed - the operation failed. int sesethwrotate(int rotate) description: this function sets the rotation scheme according to the value of 'rotate'. when portrait mode is selected as the display rotation the scheme selected is the 'non-x2' scheme. parameters: rotate - the direction to rotate the display - valid arguments for rotate are: landscape and portrait. return value: err_ok - operation completed with no problems err_failed - the operation failed to complete. the most likely reason for failing to set a rotate mode is an inability to set the desired frame rate when setting portrait mode. other factors which can cause a failure include having a 0 hz frame rate or specifying a value other than landscape or portrait for the rotation scheme.
page 56 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 int sesplitinit(word scrn1addr, word scrn2addr) description: this function prepares the system for split screen operation. in order for split screen to function the starting address in the display buffer for the upper portion(screen 1) and the lower portion (screen 2) must be specified. screen 1 is always displayed above screen 2 on the display regardless of the location of their start addresses. parameters: scrn1addr - offset, in bytes, to the start of screen 1 scrn2addr - offset, in bytes, to the start of screen 2 return value: err_ok - operation completed with no problems note it is assumed that the system has been initialized prior to calling sesplitinit(). int sesplitscreen(int screen, int visiblescanlines) description: changes the relevant registers to adjust the split screen according to the number of visible lines requested. 'whichscreen' determines which screen, 1 or 2, to base the changes on. the smallest surface screen 1 can display is one line. this is due to the way the s1d13705 operates. setting screen 1 vertical size to zero results in one line of screen 1 being displayed. the remainder of the display will be screen 2 image. parameters: screen - must be set to 1 or 2 (or use the constants screen1 or screen2) visiblescanlines- number of lines to display for the selected screen return value: err_ok - operation completed with no problems err_hal_bad_arg- argument visiblescanlines is negative or is greater than vertical panel size or whichscreen is not screen1 or screen 2. note changing the number of lines for one screen will also change the number of lines for the other screen. sesplitinit() must be called before calling sesplitscreen().
epson research and development page 57 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 int sevirtinit(dword virtx, dword * virty) description: this function prepares the system for vi rtual screen operation. the programmer passes the desired virtual width in pixels. when the routine returns virty will contain the maximum number of line that can be displayed at the requested virtual width. parameter: virtx - horizontal size of virtual display in pixels. (must be greater or equal to physical size of display) virty - pointer to an integer to recei ve the maximum number of displayable lines of 'virtx' width. return value: err_ok - operation completed with no problems err_hal_bad_arg - returned in three situations: 1) the virtual width (virtx) is greater than the largest possible width (virtx varies with color depth and ranges from 4096 pixels wider than the panel at 1 bit-per-pixel down to 512 pixels wider than the panel at 8 bit-per-pixel) 2) the virtual width is less than the physical width or 3) the maximum number of lines becomes less than the physical number of lines note the system must have been initialized prior to calling sevirtinit() int sevirtmove(int screen, int x, int y) description: this routine pans and scrolls the display. in the case where split screen operation is being used, the screen argument specifies which screen to move. the x and y param- eters specify, in pixels, the starting location in the virtual image for the top left corner of the applicable display. parameter: screen - must be set to 1 or 2, or use the constants screen1 or screen2, to identify which screen to base calculations on x - new starting x position in pixels y - new starting y position in pixels return value: err_ok - operation completed with no problems err_hal_bad_arg- there are severa l reasons for this return value: 1) whichscreen is not screen1 or screen2. 2) the y argument is greater than the la st available line less the screen height. note sevirtinit() must be been called before calling sevirtmove().
page 58 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 9.4.4 register / memory access the register/memory access functions provide access to the s1d13705 registers and display buffer through the hal. int segetreg(int index, byte * pvalue) description: reads the value in the register specified by index. parameters: index - register index to read pvalue - pointer to a byte to receive the register value. return value: err_ok - operation completed with no problems int sesetreg(int index, byte value) description: writes value specified in value to the register specified by index. parameters: index - register index to set value - value to write to the register return value: err_ok - operation completed with no problems int sereaddisplaybyte(dword offset, byte *pbyte) description: reads a byte from the display buffer at the specified offset and returns the value in pbyte. parameters: offset - offset, in bytes from start of the display buffer, to read from pbyte - pointer to a byte to return the value in return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr is greater 80 kb int sereaddisplayword(dword offset, word *pword) description: reads a word from the display buffer at th e specified offset and returns the value in pword. parameters: offset - offset, in bytes from start of the display buffer, to read from pword - pointer to a word to return the value in return value: err_ok - operation completed with no problems. err_hal_bad_arg - if the value for addr is greater than 80 kb.
epson research and development page 59 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 int sereaddisplaydword(dword offset, dword *pdword) description: reads a dword from the display buffer at the specified offset and returns the value in pdword. parameters: offset - offset from start of the display buffer to read from pdword - pointer to a dword to return the value in return value: err_ok - operation completed with no problems. err_hal_bad_arg - if the value for addr is greater than 80 kb. int sewritedisplaybytes(dword offset, byte value, dword count) description: this routine writes one or more bytes to the display buffer at the offset specified by offset. if a count greater than one is specified all bytes will have the same value. parameters: offset - offset from start of the display buffer to start writing at value - byte value to write count - number of bytes to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or the value of addr plus count is greater than 80 kb. note there are slight functionality differences between the s1d1370x and the s1d1350x hal. int sewritedisplaywords(dword offset, word value, dword count) description: writes one or more words to the display buffer at the offset specified by addr. if a count greater than one is specified all words will have the same value. parameters: offset - offset from start of the display buffer value - word value to write count - number of words to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or if addr plus count is greater than 80 kb. note there are slight functionality differences between the s1d1370x and the s1d1350x hal.
page 60 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 int sewritedisplaydwords(dword offset, dword value, dword count) description: writes one or more dwords to the display buffer at the offset specified by addr. if a count greater than one is specified all dwordss will have the same value. parameters: offset - offset from start of the display buffer value - dword value to write count - number of dwords to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or if addr plus count is greater than 80 kb. note there are slight functionality differences between the s1d1370x and the s1d1350x hal. 9.4.5 power save this section covers the hal functions dealing with the power save features of the s1d13705. int sesetpowersavemode(int pwrsavemode) description: this function sets on the s1d13705?s software selectable power save modes. parameters: pwrsavemode - integer value specifying the desired power save mode. acceptable values for pwrsavemode are: 0 - (software power save mode) in this mode registers and memory are read/writable. lcd output is forced low. 3 - (normal operation) all outputs function normally. return value: err_ok - operation completed with no problems
epson research and development page 61 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 9.4.6 drawing the drawing routines cover hal functions that deal with displaying pixels, lines and shapes. int sesetpixel(long x, long y, dword color) description: draws a pixel at coordinates (x,y) in the requested color. this routine can be used for any color depth. parameters: x - horizontal coordinate of the pixel (starting from 0) y - vertical coordinate of the pixel (starting from 0) color - at 1, 2, 4, and 8 bpp color is an index into the lut. at 15 and 16 bpp color defines the color directly (i.e. rrrrrggggggbbbbb for 16 bpp) return value: err_ok - operation completed with no problems. int segetpixel(long x, long y, dword *pcolor) description: reads the pixel color at coordinates (x,y). this routine can be used for any color depth. parameters: x - horizontal coordinate of the pixel (starting from 0) y - vertical coordinate of the pixel (starting from 0) pcolor - at 1, 2, 4, and 8 bpp pcolor points to an index into the lut. at 15 and 16 bpp pcolor points to the color directly (i.e. rrrrrggggggbbbbb for 16 bpp) return value: err_ok - operation completed with no problems. int sedrawline(int x1, int y1, int x2, int y2, dword color) description: this routine draws a line on the display from the endpoints defined by x1,y1 to the endpoint x2,y2 in the requested 'color'. currently sedrawline() only draws horizontal and vertical lines. parameters: (x1, y1) - first endpoint of the line in pixels (x2, y2) - second endpoint of the line in pixels (see note below) color - color to draw with. 'color' is an index into the lut. return value: err_ok - operation completed with no problems note functionality differs from the 135x hal.
page 62 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 int sedrawrect(long x1, long y1, long x2, long y2, dword color, bool solidfill) description: this routine draws and optionally fills a rectangular area of display buffer. the upper right corner is defined by x1,y1 and the lower right corner is defined by x2,y2. the color, defined by color , applies both to the border and to the optional fill. parameters: x1, y1 - top left corner of the rectangle (in pixels) x2, y2 - bottom right corner of the rectangle (in pixels) color - the color to draw the rectangle outline and fill with - color is an index into the look-up table. solidfill - flag whether to fill the rectangle or simply draw the border. - set to 0 for no fill, set to non-0 to fill the inside of the rectangle return value: err_ok - operation completed with no problems. 9.4.7 lut manipulation these functions deal with altering the color values in the look-up table. int sesetlut(byte *plut, int count) description: this routine writes one or more lut entries. the writes always start with look-up table index 0 and continue for 'count' entries. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four most significant bits of each byte. parameters: plut - pointer to an array of byte lut[16][3] lut[x][0] == red component lut[x][1] == green component lut[x][2] == blue component count - the number of lut entries to write. return value: err_ok - operation completed with no problems int segetlut(byte *plut, int count) description: this routine reads one or more lut entries and puts the result in the byte array pointed to by plut. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four most significant bits of each byte. parameters: plut - pointer to an array of byte lut[16][3] - plut must point to enough memory to hold 'count ' x 3 bytes of data. count - the number of lut elements to read. return value: err_ok - operation completed with no problems
epson research and development page 63 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 int sesetlutentry(int index, byte *pentry) description: this routine writes one lut entry. unlike sesetlut, the lut entry indicated by ' index' can be any value from 0 to 255. a look-up table entry consists of three bytes, one each for red, green, and blue. the color infor- mation is stored in the four most significant bits of each byte. parameters: index - index to lut entry (0 to 255) plut - pointer to an array of three bytes. return value: err_ok - operation completed with no problems int segetlutentry(int index, byte *pentry) description: this routine reads one lut entry from any index. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four most significant bits of each byte. parameters: index - index to lut entry (0 to 255) pentry - pointer to an array of three bytes return value: err_ok - operation completed with no problems
page 64 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 9.5 porting libse to a new target platform building epson research and development applications like a simple helloapp for a new target platform requires 3 things, the helloapp code, the 13705hal library, and a some standard c functions (portable ones are encapsulated in our mini c library libse). components needed to build 13705 hal application for example, when building helloapp.exe for the intel 16-bit platform, you need the helloapp source files, the 13705hal library and its include files, and some standard c library functions (which in this case would be supplied by the compiler as part of its run- time library). as this is a dos .exe application, you do not need to supply start-up code that sets up the chip selects or interrupts, etc... what if you wanted to build the application for an sh-3 target, one not running dos? before you can build that application to load onto the target, you need to build a c library for the target that contains enough of the standard c functions (like sprintf and strcpy) to let you build the application. epson research and development supplies the libse for this purpose, but your compiler may come with one included. you also need to build the 13705hal library for the target. this library is the graphics chip dependent portion of the code. finally, you need to build the final application, linked together with the libraries described earlier. the following examples assume that you have a copy of the complete source code for the s1d13705 utilities, including the nmake makefiles, as well as a copy of the gnu compiler v2.7-96q3a for hitachi sh3. these are available on the world wide web at http://www.erd.epson.com. helloapp source code 13705hal library helloapp c library functions (libse for embedded platforms)
epson research and development page 65 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 9.5.1 building the libse library for sh3 target example in the libse files, there are three main types of files:  c files that contain the library functions.  assembler files that contain the target specific code.  makefiles that describe the build process to construct the library. the c files are generic to all platforms, although there are some customizations for targets in the form of #ifdef lcevbsh3 code (the ifdef used for the example sh3 target low cost eval board sh3). the majority of this code remains constant whichever target you build for. the assembler files contain some platform setup code (stacks, chip selects) and jumps into the main entry point of the c code that is contained in the c file entry.c. for our example, the assembler file is startsh3.s and it performs only some stack setup and a jump into the code at _mainentry (entry.c). in the embedded targets, printf (in file rprintf.c), putchar (putchar.c) and getch (kb.c) resolve to serial character input/output. for sh3, much of the detail of handling serial io is hidden in the monitor of the evaluation board, but in general the primitives are fairly straight forward, providing the ability to get characters to/from the serial port. for our target example, the nmake makefile is makesh3.mk. this makefile calls the gnu compiler at a specific location (tooldir), enumerates the list of files that go into the target and builds a .a library file as the output of the build process. with nmake.exe in your path run: nmake -fmakesh3.mk 9.5.2 building the hal library for the target example building the hal for the target example is less complex because the code is written in c and requires little platform specific adjustment. the nmake makefile for our example is makesh3.mk.this makefile contains the rules for building sh3 objects, the files list for the library and the library creation rules. the gnu compiler tools are pointed to by tooldir. with nmake in your path run: nmake -fmakesh3.mk
page 66 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 10 sample code included in the sample code section are two examples of programing the s1d13705. the first sample uses the hal to draw a red square, wait for user input then rotates to portrait mode and draws a blue square. the second sample code performs the same procedures but directly accesses the registers of the s1d13705. these code samples are for example purposes only. 10.1 sample code using the s1d13705 hal api /* **=========================================================================== ** sample1.c - sample code demonstrating a program using the s1d13705 hal. **------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998, 1999 epson research and development, inc. ** all rights reserved. **------------------------------------------------------------------------- ** ** the hal api code is configured for the following: ** ** 320x240 single color 4-bit stn ** 8 bpp - 70 hz frame rate (6 mhz clki) ** high performance enabled ** **=========================================================================== */ #include #include #include #include #include "hal.h" /* structures, constants and prototypes. */ #include "appcfg.h" /* hal configuration information. */ /*--------------------------------------------------------------------------*/ void main(void) { int chipid; /* ** initialize the hal. ** the call to seregisterdevice() actually prepares the hal library ** for use. the s1d13705 is not accessed, except to read the revision ** code register. */ if (err_ok != seregisterdevice(&halinfo)) { printf("\nerror: could not register s1d13705 device."); exit(1); }
epson research and development page 67 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 /* ** get the product code to verify this is an s1d13705. */ segetid(&chipid); if (id_s1d13705_rev1 != chipid) { printf("\nerror: did not detect an s1d13705."); exit(1); } /* ** initialize the s1d13705. ** this step programs the registers with values taken from ** the halinfo struct in appcfg.h. */ if (err_ok != sesetinit()) { printf("\nerror: could not initialize device."); exit(1); } /* ** the default initialization cleared the display. ** draw a 100x100 red (color 1) rectangle in the upper ** left corner (0,0) of the display. */ sedrawrect(0, 0, 100, 100, 1, true); /* ** pause here. */ getch(); /* ** clear the display. do this by writing 81920 bytes */ sewritedisplaybytes(0, 0, eighty_k); /* ** setup portrait mode. */ sesethwrotate(portrait); /* ** draw a solid blue 100x100 rectangle in center of the display. ** this starting co-ordinates, assuming a 320x240 display is ** (320-100)/2 , (240-100)/2 = 110,70. */ sedrawrect(110, 70, 210, 170, 2, true); /* ** done! */ exit(0); }
page 68 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 10.2 sample code without using the s1d13705 hal api this second sample demonstrates exactly the same sequence as the first however the hal is not used, all manipulation is done by directly accessing the registers. /* **=========================================================================== ** sample2.c - sample code demonstrating a direct access of the s1d13705. **------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998, 1999 epson research and development, inc. ** all rights reserved. **------------------------------------------------------------------------- ** ** the sample code using direct s1d13705 access ** will configure for the following: ** ** 320x240 single color 4-bit stn ** 8 bpp color depth - 70 hz frame rate (6 mhz clki) ** ** notes: ** 1) this code is written to be compiled for use under 32-bit ** windows. in order to function the vxd file s1d13x0x.vxd must ** be in the \windows\system directory. ** 2) register setup is done with discreet writes rather than being table ** driven. this allows for clear commenting. it is more efficient to ** loop through the array writing each element to a control register. ** 3) the array of register values as produced by 13705cfg.exe is included ** here. i write the registers directly rather than refer to the register ** array in the sample code. ** **=========================================================================== */ #include #include #include #include "ioctl.h" /* ** look-up table - 16 of 256 elements. ** for this sample only the first sixteen lut elements are set. */ unsigned char lut[16*3] = { 0x00, 0x00, 0x00,/* black */ 0x00, 0x00, 0xa0,/* blue */ 0x00, 0xa0, 0x00,/* green */ 0x00, 0xa0, 0xa0,/* cyan */ 0xa0, 0x00, 0x00,/* red */ 0xa0, 0x00, 0xa0,/* purple */
epson research and development page 69 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 0xa0, 0xa0, 0x00,/* yellow */ 0xa0, 0xa0, 0xa0,/* white */ 0x00, 0x00, 0x00,/* black */ 0x00, 0x00, 0xf0,/* lt blue */ 0x00, 0xf0, 0x00,/* lt green */ 0x00, 0xf0, 0xf0,/* lt cyan */ 0xf0, 0x00, 0x00,/* lt red */ 0xf0, 0x00, 0xf0,/* lt purple */ 0xf0, 0xf0, 0x00,/* lt yellow */ 0xf0, 0xf0, 0xf0/* lt white */ }; /* ** register data. ** these values were generated using 13705cfg.exe. ** the sample code uses these values but does not refer to this array. ** in a typical application these values would be written to the registers ** using a loop. */ unsigned char reg[0x20] = { 0x00, 0x23, 0xc0, 0x03, 0x27, 0xef, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define mem_size 0x14000 /* 80 kb display buffer. */ typedef unsigned short word;/* some useful types */ typedef unsigned long dword; typedef unsigned char byte; typedef byte * pbyte; #define lobyte(w) ((byte)(w)) #define hibyte(w) ((byte)(((word)(w) >> 8) & 0xff)) #define set_reg(idx, val) (*(pregs + idx)) = (val) /*-----------------------------------------------------------------------*/ void main(void) { pbyte p13705; pbyte pregs; pbyte pmem; pbyte plut; int x, y, tmp; int bitsperpixel = 8; int width = 320; int height = 240; int offsetbytes; int rc; /* ** get a linear address we can use in our code to access the s1d13705. ** this is only needed to access the s1d13705 on the isa eval board.
page 70 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 */ dword dwlinearaddress; rc = intelgetlinaddressw32(0xf00000, &dwlinearaddress); if (rc != 0) { printf("error getting linear address"); return; } p13705 = (pbyte)dwlinearaddress; pregs = p13705 + 0x1ffe0; /* ** check the revision code. exit if we don't find an s1d13705. */ if (0x24 != *pregs) { printf("didn't find an s1d13705"); return; } /* ** initialize the chip - after initialization the display will be ** setup for landscape use. ** normally a loop would be used to write the register array near ** the top of this file to the registers. ** for purposes of documenting the sample code, each register write ** is performed individually. */ /* ** register 01h: mode register 0 - color, 8-bit format 2 */ set_reg(0x01, 0x20); /* ** register 02h: mode register 1 - 8bpp */ set_reg(0x02, 0xc0); /* ** register 03h: mode register 2 - normal power mode */ set_reg(0x03, 0x03); /* ** register 04h: horizontal panel size - 320 pixels - (320/8)-1 = 39 = 27h */ set_reg(0x04, 0x27); /* ** register 05h: vertical panel size lsb - 240 pixels ** register 06h: vertical panel size msb - (240 - 1) = 239 = efh */ set_reg(0x05, 0xef); set_reg(0x06, 0x00); /*
epson research and development page 71 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 ** register 07h - fpline start position - not used by stn */ set_reg(0x07, 0x00); /* ** register 08h - horizontal non-display period = (reg[08] + 4) * 8 ** = (0+4) * 8 = 32 pels ** - hndp and vndp are calculated to achieve the ** desired frame rate according to: ** ** pclk ** frame rate = --------------------------- ** (hdp + hndp) * (vdp + vndp) */ set_reg(0x08, 0x00); /* ** register 09h - fpframe start position - not used by stn */ set_reg(0x09, 0x00); /* ** register 0ah - vertical non-display register = 3 lines ** - calculated in conjunction with register 08h (hndp) to ** achieve the desired frame rate. */ set_reg(0x0a, 0x03); /* ** register 0bh - mod rate - not used by this panel */ set_reg(0x0b, 0x00); /* ** register 0ch - screen 1 start word address lsb ** register 0dh - screen 1 start word address msb ** - start address should be set to 0 */ set_reg(0x0c, 0x00); set_reg(0x0d, 0x00); /* ** register 0eh - screen 2 start word address lsb ** register 0fh - screen 2 start word address msb ** - set this start address to 0 too */ set_reg(0x0e, 0x00); set_reg(0x0f, 0x00); set_reg(0x10, 0x00); /* screen1/screen2 start address high bits. */ /* ** register 11h - memory address offset ** - used for setting memory to a width greater than the ** display size. usually set to 0 during initialization ** and programmed to desired value later. */
page 72 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 set_reg(0x11, 0x00); /* ** register 12h - screen 1 vertical size lsb ** register 13h - screen 1 vertical size msb ** - set to maximum (i.e. 0x3ff). this register is used ** for split screen operation. normally it is set to ** maximum value. */ set_reg(0x12, 0xff); set_reg(0x13, 0x03); /* ** look-up table registers ** the lut is programmed at the end of the initialization sequence. */ /* ** register 18h - gpio configuration - set to 0 ** - '0' configures the gpio pins for input (power on default) */ set_reg(0x18, 0x00); /* ** register 19h - gpio status - set to 0 ** - this step has no real purpose. it sets the gpio ** pins low should gpio be set as outputs. */ set_reg(0x19, 0x00); /* ** register 1ah - scratch pad - set to 0 ** - use this register to store whatever state data your ** system may require. */ set_reg(0x1a, 0x00); /* ** register 1bh - portrait mode - set to 0 - disable portrait mode */ set_reg(0x1b, 0x00); /* ** register 1ch - line byte count - set to 0 - used only by portrait mode. */ set_reg(0x0c, 0x00); /* ** look-up table ** in this example we only set the first sixteen lut entries. ** in typical use all 256 entries would be setup. */ /* ** register 15h - look-up table address ** - set to 0 to start rgb sequencing at the first lut entry. */ set_reg(0x15, 0x00);
epson research and development page 73 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 /* ** register 17h - look-up table data ** - write 16 rgb triplets to the lut. */ plut = lut; for (tmp = 0; tmp < 16; tmp++) { set_reg(0x17, *plut);// set red plut++; set_reg(0x17, *plut);// set green plut++; set_reg(0x17, *plut);// set blue plut++; } /* ** clear all of video memory by writing 81920 bytes of 0. */ pmem = p13705; for (tmp = 0; tmp < mem_size; tmp++) { *pmem = 0; pmem++; }; /* ** draw a 100x100 red rectangle in the upper left corner (0,0) ** of the display. */ for (y = 0; y < 100; y++) { /* ** set the memory pointer at the start of each line. ** pointer = mem_offset + (y * line_width * bpp / 8) + (x * bpp / 8) */ pmem = p13705 + (y * 320 * bitsperpixel / 8) + 0; for (x = 0; x < 100; x++) { *pmem = 0x4;/* draw a pixel with lut color 4 */ pmem++; } } /* ** wait for the user to press a key before continuing. */ printf("press any key to continue"); getch(); /* ** set and use portrait mode. */ /*
page 74 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 ** clear the display, and all of video memory, by writing 81920 bytes ** of 0. this is done because an image in display memory is not rotated ** when the switch to portrait display mode occurs. */ pmem = p13705; for (tmp = 0; tmp < mem_size; tmp++) { *pmem = 0; pmem++; }; /* ** we will use the default portrait mode scheme so we have to adjust ** the rotated width to be a power of 2. ** (note: current height will become the rotated width) */ tmp = 1; while (height > (1 << tmp)) tmp++; height = (1 << tmp); offsetbytes = height * bitsperpixel / 8; /* ** set: ** 1) line byte count to size of the rotated width (i.e. current height) ** 2) start address to the offset of the width of the rotated display. ** (in portrait mode the start address registers point to bytes) */ set_reg(0x1c, (byte)offsetbytes); offsetbytes--; set_reg(0x0c, lobyte(offsetbytes)); set_reg(0x0d, hibyte(offsetbytes)); /* ** set portrait mode. ** use the non-x2 (default) scheme so we don't have to re-calc the frame ** rate. mclk will be <= 25 mhz so we can leave auto-switch enabled. */ set_reg(0x1b, 0x80); /* ** draw a solid blue 100x100 rectangle centered on the display. ** starting co-ordinates, assuming a 320x240 display are: ** (320-100)/2 , (240-100)/2 = 110,70. */ for (y = 70; y < 180; y++) { /* ** set the memory pointer at the start of each line. ** pointer = mem_offset + (y * line_width * bpp / 8) + (x * bpp / 8) ** notice: as this is default portrait mode, the width is a power ** of two. in this case, we use a value of 256 pixels for ** our calculations instead of the panel dimension of 240.
epson research and development page 75 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 */ x = 110; pmem = p13705 + (y * 256 * bitsperpixel / 8) + (x * bitsperpixel / 8); for (x = 110; x < 210; x++) { *pmem = 0x01; /* draw a pixel in lut color 1 */ pmem++; } } } /* **=========================================================================== ** ** intelgetlinaddressw32(dword physaddr,dword *linaddr) ** ** return value: ** ** 0 : no error ** -1 : error */ int intelgetlinaddressw32(dword physaddr, dword *linaddr) { handle hdriver; dword cbreturned; int rc, retval; unsigned arr[2]; // first see if we are running under winnt dword dwversion = getversion(); if (dwversion < 0x80000000) { hdriver = createfile("\\\\.\\s1d13x0x", generic_read | generic_write, 0, null, open_existing,file_attribute_normal, null); } else // win95/98 { // dynamically load and prepare to call s1d13x0x. // the file_flag_delete_on_close flag is used so that closehandle can // be used to dynamically unload the vxd. // the create_new flag is not necessary hdriver = createfile("\\\\.\\s1d13x0x.vxd", 0,0,0, create_new, file_flag_delete_on_close, 0); } if (hdriver == invalid_handle_value) return -1; /* ** from now on, the code is common for win95 & winnt */ if (physaddr == 0)
page 76 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 return -1; arr[0] = physaddr; arr[1] = 4 * 1024 * 1024; rc = deviceiocontrol(hdriver, ioctl_sed_map_physical_memory, &arr[0], 2 * sizeof(ulong), &retval, sizeof(ulong), &cbreturned, null); if (rc) *linaddr = retval; /* ** close the handle. ** this will dynamically unload the virtual device for win95. */ closehandle(hdriver); if (rc) return 0; return -1; }
epson research and development page 77 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 10.3 header files the header files included here are the required for the hal sample to compile correctly. /* **=========================================================================== ** hal.h - header file for use with programs written to use the s1d13705 hal. **--------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998, 1999 epson research and development, inc. ** all rights reserved. **=========================================================================== */ #ifndef _hal_h_ #define _hal_h_ #include "hal_regs.h" /*-------------------------------------------------------------------------*/ typedef unsigned char byte; typedef unsigned short word; typedef unsigned long dword; typedef unsigned int uint; typedef int bool; #ifdef intel typedef byte far *lpbyte; typedef word far *lpword; typedef uint far *lpuint; typedef dword far *lpdword; #else typedef byte *lpbyte; typedef word *lpword; typedef uint *lpuint; typedef dword *lpdword; #endif #ifndef lobyte #define lobyte(w) ((byte)(w)) #endif #ifndef hibyte #define hibyte(w) ((byte)(((uint)(w) >> 8) & 0xff)) #endif #ifndef loword #define loword(l) ((word)(dword)(l)) #endif #ifndef hiword #define hiword(l) ((word)((((dword)(l)) >> 16) & 0xffff)) #endif #ifndef makeword #define makeword(lo, hi) ((word)(((word)(lo)) | (((word)(hi)) << 8)) ) #endif #ifndef makelong
page 78 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 #define makelong(lo, hi) ((long)(((word)(lo)) | (((dword)((word)(hi))) << 16))) #endif #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif #define off 0 #define on 1 #define screen1 1 #define screen22 /* ** constants for hw rotate support */ #define default0 #define landscape 1 #define portrait2 #ifndef null #ifdef __cplusplus #define null 0 #else #define null ((void *)0) #endif #endif /*-------------------------------------------------------------------------*/ /* ** size_version is the size of the version string (eg. "1.00") ** size_status is the size of the status string (eg. "b" for beta) ** size_revision is the size of the status revision string (eg. "00") */ #define size_version5 #define size_status 2 #define size_revision3 #ifdef enable_dpf /* debug_printf() */ #define dpf(exp) printf(#exp "\n") #define dpf1(exp) printf(#exp " = %d\n", exp) #define dpf2(exp1, exp2) printf(#exp1 "=%d " #exp2 "=%d\n", exp1, exp2) #define dpfl(exp) printf(#exp " = %x\n", exp) #else #define dpf(exp) ((void)0) #define dpf1(exp) ((void)0) #define dpfl(exp) ((void)0) #endif /*-------------------------------------------------------------------------*/ enum { err_ok = 0, /* no error, call was successful. */
epson research and development page 79 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 err_failed, /* general purpose failure. */ err_unknown_device, /* */ err_invalid_parameter,/* function was called with invalid parameter. */ err_hal_bad_arg, err_toomany_devs }; /******************************************* * definitions for segetid() *******************************************/ #define product_id 0x24 enum { id_unknown, id_s1d13705_rev1 }; #define max_mem_addr81920 - 1 #define eighty_k81920 #define max_device 10 #define se_rsvd 0 /******************************************* * definitions for internal calculations. *******************************************/ #define min_non_disp_x 32 #define max_non_disp_x 256 #define min_non_disp_y 2 #define max_non_disp_y 64 enum { red, green, blue }; /*************************************************************************/ typedef struct taghalstruct { char szidstring[16]; word wdetectendian; word wsize; byte reg[max_reg + 1]; dword dwclki; /* input clock frequency (in khz) */ dword dwdispmem;/* */ word wframerate;/* */ } hal_struct; typedef hal_struct * phal_struct; #ifdef intel_16bit typedef hal_struct far * lphal_struct; #else typedef hal_struct * lphal_struct;
page 80 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 #endif /*=========================================================================*/ /* function proto-types */ /*=========================================================================*/ /*---------------------------- initialization -----------------------------*/ int seregisterdevice( const lphal_struct lphalinfo ); int sesetinit( void ); int seinithal( void ); /*----------------------------- miscellaneous -----------------------------*/ int segetid( int *pid ); void segethalversion( const char **pversion, const char **pstatus, const char **pstatusrevision ); int sesetbitsperpixel( int nbitsperpixel ); int segetbitsperpixel( int *pbitsperpixel ); int segetbytesperscanline( int *pbytes ); int segetscreensize( int *width, int *height ); void sedelay( int nmilliseconds ); int segetlastusablebyte( long *lastbyte ); int sesethighperformance( bool onoff ); /*------------------------------- advanced --------------------------------*/ int sesethwrotate( int nmode ); int sesplitinit( word scrn1addr, word scrn2addr ); int sesplitscreen( int whichscreen, int visiblescanlines ); int sevirtinit( int xvirt, long *yvirt ); int sevirtmove( int nwhichscreen, int x, int y ); /*------------------------ register/memory access -------------------------*/ int segetreg( int index, byte *pvalue ); int sesetreg( int index, byte value ); int sereaddisplaybyte( dword offset, byte *pbyte ); int sereaddisplayword( dword offset, word *pword ); int sereaddisplaydword( dword offset, dword *pdword ); int sewritedisplaybytes( dword addr, byte val, dword count ); int sewritedisplaywords( dword addr, word val, dword count ); int sewritedisplaydwords( dword addr, dword val, dword count ); /*---------------------------------- power save ---------------------------*/ int sehwsuspend( int ndevid, bool val ); int sesetpowersavemode( int ndevid, int powersavemode ); /*----------------------------------- drawing -----------------------------*/ int sedrawline( int x1, int y1, int x2, int y2, dword color ); int sedrawrect( int x1, int y1, int x2, int y2, dword color, bool solidfill ); /*------------------------------ color ------------------------------------*/ int sesetlut( byte *plut ); int segetlut( byte *plut ); int sesetlutentry( int index, byte *pentry ); int segetlutentry( int index, byte *pentry ); #endif /* _hal_h_ */
epson research and development page 81 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 /* **=========================================================================== ** appcfg.h - application configuration information. **--------------------------------------------------------------------------- ** created 1998 - vancouver design centre ** copyright (c) 1998, 1999 epson research and development, inc. ** all rights reserved. **--------------------------------------------------------------------------- ** ** the data in this file was generated using 13705cfg.exe. ** ** the configureation parameters chosen were: ** 320x240 single color 4-bit stn ** 4 bpp - 100 hz frame rate (12 mhz clki) ** high performance enabled ** **=========================================================================== */ /************************************************************/ /* 13705 hal hdr (do not remove) */ /* hal_struct information generated by 13705cfg.exe */ /* copyright (c) 1998 epson research and development, inc. */ /* all rights reserved. */ /* */ /* include this file once in your primary source file */ /************************************************************/ hal_struct halinfo = { "13705 hal exe", /* id string */ 0x1234, /* detect endian */ sizeof(hal_struct), /* size */ 0x00, 0x20, 0xc0, 0x03, 0x27, 0xef, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6000, /* clki (khz) */ 0xf00000, /* display address */ 70, /* panel frame rate (hz) */ };
page 82 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 /* **=========================================================================== ** hal_regs.h **--------------------------------------------------------------------------- ** created 1998, epson research & development ** vancouver design center. ** copyright(c) seiko epson corp. 1998. all rights reserved. **=========================================================================== */ #ifndef __hal_regs_h__ #define __hal_regs_h__ /* ** 13705 register names */ #define reg_revision_code 0x00 #define reg_mode_register_0 0x01 #define reg_mode_register_1 0x02 #define reg_mode_register_2 0x03 #define reg_horz_panel_size 0x04 #define reg_vert_panel_size_lsb 0x05 #define reg_vert_panel_size_msb 0x06 #define reg_fpline_start_pos 0x07 #define reg_horz_nondisp_period 0x08 #define reg_fpframe_start_pos 0x09 #define reg_vert_nondisp_period 0x0a #define reg_mod_rate 0x0b #define reg_scrn1_start_addr_lsb 0x0c #define reg_scrn1_start_addr_msb 0x0d #define reg_scrn2_start_addr_lsb 0x0e #define reg_scrn2_start_addr_msb 0x0f #define reg_scrn_start_addr_overflow 0x10 #define reg_memory_addr_offset 0x11 #define reg_scrn1_vert_size_lsb 0x12 #define reg_scrn1_vert_size_msb 0x13 #define reg_lut_addr 0x15 #define reg_lut_bank_select 0x16 #define reg_lut_data 0x17 #define reg_gpio_config 0x18 #define reg_gpio_status 0x19 #define reg_scratchpad 0x1a #define reg_portrait_mode 0x1b #define reg_line_byte_count 0x1c #define reg_not_present_1 0x1d /* ** warning!!! max_reg must be the last available register!!! */ #define max_reg 0x1d #endif /* __hal_regs_h__ */
epson research and development page 83 vancouver design center programming notes and examples s1d13705 issue date: 02/01/22 x27a-g-002-03 /*---------------------------------------------------------------------------- ** ** copyright (c) 1998, 1999 epson research and development, inc. ** all rights reserved. ** ** module name: ** ** ioctl.h ** ** ** abstract: ** ** include file for s1d13x0x pci board driver. ** define the ioctl codes we will use. the ioctl code contains a command ** identifier, plus other information about the device, the type of access ** with which the file must have been opened, and the type of buffering. ** **---------------------------------------------------------------------------- */ #define sed_type file_device_controller // the ioctl function codes from 0x800 to 0xfff are for customer use. #define ioctl_sed_query_number_of_pci_boards \ ctl_code( sed_type, 0x900, method_buffered, file_any_access) #define ioctl_sed_map_pci_board \ ctl_code( sed_type, 0x901, method_buffered, file_any_access) #define ioctl_sed_map_physical_memory \ ctl_code( sed_type, 0x902, method_buffered, file_any_access) #define ioctl_sed_unmap_linear_memory \ ctl_code( sed_type, 0x903, method_buffered, file_any_access)
page 84 epson research and development vancouver design center s1d13705 programming notes and examples x27a-g-002-03 issue date: 02/01/22 this page left blank
s1d13705 register summary x27a-r-001-03 page 1 01/02/13 notes 1 these bits are used to identify the s1d13705 at power on / reset. 2 io addresses are relative to the beginning of display memory. 3 gray shade/color mode selection 4 panel data format 5 high performance selection 6 power save mode selection reg[00 h ] r e v i s i o n c o d e r e g i s t e r 1 io address = 1ffe0h 2 , ro product code = 001001 revision code = 00 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 bit 1 bit 0 reg[01 h ] m o d e r e g i s t e r 0 io address = 1ffe1h, rw tft/stn dual/single color/mono 3 fpline polarity fpframe polarity mask fpshift data width 4 bit 1 bit 0 reg[02 h ] m o d e r e g i s t e r 1 io address = 1ffe2h, rw bit-per-pixel 3 high 5 performance input clock div (clki/2) display blank frame repeat hw video invert enable software video invert bit 1 bit 0 reg[03 h ] m o d e r e g i s t e r 2 io address = 1ffe3h, rw n/a n/a n/a n/a lcdpwr override hardware ps enable sw power save 6 bit 1 bit 0 reg[04 h ] h o r i z o n t a l p a n e l s i z e r e g i s t e r io address = 1ffe4h, rw n/a horizontal panel size = 8(reg + 1) bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[05 h ] v e r t i c a l p a n e l s i z e r e g i s t e r (lsb) io address = 1ffe5h, rw vertical panel size = (reg[05h], reg[06h]) + 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[06 h ] v e r t i c a l p a n e l s i z e r e g i s t e r (msb) io address = 1ffe6h, rw n/a n/a n/a n/a n/a n/a vertical panel size bit 9 bit 8 reg[07 h ] fpl i n e s t a r t p o s i t i o n io address = 1ffe7h, rw n/a n/a n/a fpline start position = 8(reg[07h] + 2) bit 4 bit 3 bit 2 bit 1 bit 0 reg[08 h ] h o r i z o n t a l n o n -d i s p l a y p e r i o d io address = 1ffe8h, rw n/a n/a n/a horizontal non-display period = 8(reg + 4) bit 4 bit 3 bit 2 bit 1 bit 0 reg[09 h ] fpf r a m e s t a r t p o s i t i o n io address = 1ffe9h, rw n/a n/a fpframe start position bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0a h ] v e r t i c a l n o n -d i s p l a y p e r i o d r e g i s t e r io address = 1ffeah, rw vert non- disp status n/a vertical non-display period bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0b h ] mod r a t e r e g i s t e r io address = 1ffebh, rw n/a n/a mod rate bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0c h ] s c r e e n 1 s t a r t w o r d a d d r e s s r e g i s t e r (lsb) io address = 1ffech, rw screen 1 start word address = (reg[0ch], reg[0dh], reg[10] bit 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0d h ] s c r e e n 1 s t a r t w o r d a d d r e s s r e g i s t e r (msb) io address = 1ffedh, rw screen 1 start word address bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[0e h ] s c r e e n 2 s t a r t w o r d a d d r e s s r e g i s t e r (lsb) io address = 1ffeeh, rw screen 2 start word address = (reg[0e], reg[0fh], reg[10] bit 4) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0f h ] s c r e e n 2 s t a r t w o r d a d d r e s s r e g i s t e r (msb) io address = 1ffefh, rw screen 2 start word address bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[10 h ] s c r e e n s t a r t a d d r e s s o v e r f l o w r e g i s t e r ) io address = 1fff0h, rw screen 2 start add bit 16 screen 1 start add bit 16 reg[11h] m emory a ddress o ffset r egister io address = 1fff1h, rw memory address offset bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[12h] s creen 1 v ertical s ize r egister (lsb) io address = 1fff2h, rw screen 1 vertical size = (reg[12h], reg[13h]) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[13h] s creen 1 v ertical s ize r egister (msb) io address = 1fff3h, rw n/a n/a n/a n/a n/a n/a screen 1 vertical size bit 9 bit 8 reg[15h] l ook -u p t able a ddress r egister io address = 1fff5h, rw look-up table address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[17h] l ook -u p t able d ata r egister io address = 1fff7h, rw look-up table data n/a n/a n/a n/a bit 3 bit 2 bit 1 bit 0 reg[18h] gpio c onfiguration c ontrol r egister io address = 1fff8h, rw n/a n/a n/a gpio4 pin io config gpio3 pin io config gpio2 pin io config gpio1 pin io config gpio0 pin io config reg[19h] gpio s tatus / c ontrol r egister io address = 1fff9h, rw n/a n/a n/a gpio4 pin io status gpio3 pin io status gpio2 pin io status gpio1 pin io status gpio0 pin io status reg[1ah] s cratch p ad r egister io address = 1fffah, rw scratch pad register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[1bh] s wivel v iew m ode r egister io address = 1fffbh, rw swivelview mode en. swivelview mode sel. n/a n/a n/a reserved swivelview pclk select bit 1 bit 0 reg[1ch] l ine b yte c ount r egister io address = 1fffch, rw line byte count bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 color/mono reg[01] bit 5 bit-per-pixel bit 1 reg[02] bit 7 bit-per-pixel bit 0 reg[02] bit 6 display mode 1 0 0 2 colors 1 bit-per-pixel 1 4 colors 2 bit-per-pixel 1 0 16 colors 4 bit-per-pixel 1 256 colors 8 bit-per-pixel 0 0 0 2 gray shade 1 bit-per-pixel 1 4 gray shade 2 bit-per-pixel 1 0 16 gray shade 4 bit-per-pixel 1 reserved tft/stn reg[01] bit 7 color/ mono reg[01] bit 5 dual/ single reg[01] bit 6 data width bit 1 reg[01] bit 1 data width bit 0 reg[01] bit 0 function 0 0 0 0 0 mono single 4-bit lcd 1 mono single 8-bit lcd 1 0reserved 1reserved 1 0 0reserved 1 mono dual 8-bit lcd 1 0reserved 1reserved 1 0 0 0 color single 4-bit lcd 1 color single 8-bit lcd format 1 1 0reserved 1 color single 8-bit lcd format 2 1 0 0reserved 1 color dual 8-bit lcd 1 0reserved 1reserved 1 don?t care 0 9 bit tft panel 1 12 bit tft panel high performance bit-per-pixel bit 1 reg[02] bit 7 bit-per-pixel bit 0 reg[02] bit 6 display modes 0 0 0 mclk = pclk/8 1 bit-per-pixel 1 mclk = pclk/4 2 bit-per-pixel 1 0 mclk = pclk/2 4 bit-per-pixel 1 mclk = pclk 8 bit-per-pixel 1xx mclk = pclk power save bit 1 power save bit 0 mode 0 0 power save mode 1 0 1 reserved 1 0 reserved 1 1 normal operation s1d13705 register summary x27a-r-001-03
s1d13705 register summary x27a-r-001-03 page 2 01/02/13
s1d13705 embedded memory lcd controller 13705cfg configuration program document number: x27a-b-001-03 copyright ? 1999, 2002 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. mi crosoft and windows are register ed trademarks of microsoft corpor ation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 this page left blank
epson research and development page 3 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 table of contents 13705cfg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 s1d13705 supported evaluation platforms . . . . . . . . . . . . . . . . . . . . . . 5 installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 13705cfg configuration tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 general tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 preferences tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 clocks tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 panel tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 panel power tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 registers tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 13705cfg menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 open... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 save as... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 configure multiple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 enable tooltips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 erd on the web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 about 13705cfg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
page 4 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 this page left blank
epson research and development page 5 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 13705cfg 13705cfg is an interactive windows? program that calculates register values for a user- defined s1d13705 configuration. the configuration information can be used to directly alter the operating characteristics of the s1d13705 utilities or any program built with the hardware abstraction layer (hal) library. alternatively, the configuration information can be saved in a variety of text file formats for use in other applications. note this program is a windows desktop application suitable for configuring software for a given implementation of an epson lcd controller. however, it is not a display driver for any windows desktop operating system. epson does not provide display drivers for any of the windows desktop operating systems. s1d13705 supported evaluation platforms 13705cfg runs on pc system running windows 9x/me/xp/nt/2000 and can modify win32 .exe files.
page 6 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 installation create a directory for 13705cfg.exe and the s1d13705 utilities. copy the files 13705cfg.exe and panels.def to that directory. panels.def contains configuration infor- mation for a number of panels and must reside in the same directory as 13705cfg.exe . usage to start 13705cfg from the windows desktop, double-click on the my computer icon and run the program 13705cfg.exe from the installed directory. to start 13705cfg from a windows command prompt, change to the directory 13705cfg.exe was installed to and type the command 13705cfg . the basic procedure for using 13705cfg is: 1. start 13705cfg as described above. 2. open an existing file to serve as a starting reference point (this step is optional). 3. modify the configuration. for specific information on editing the configuration, see ?13705cfg configuration tabs? on page 7. 4. save the new configuration. the configuration information can be saved in two ways; as an ascii text file or by modifying an executable image on disk. several ascii text file formats are supported. most are formatted c header files used to build display drivers or standalone applications. utility files based on the hardware abstraction layer (hal) can be modified directly by 13705cfg.
epson research and development page 7 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 13705cfg configuration tabs 13705cfg provides a series of tabs which can be selected at the top of the main window. each tab allows the configuration of a specific aspect of s1d13705 operation. the tabs are labeled ?general?, ?preference?, ?clocks?, ?panel?, ?panel power?, and ?registers?. the following sections describe the purpose and use of each of the tabs. general tab the general tab contains s1d13705 evaluation board specific information. the values presented are used for configuring hal based executable utilities. the settings on this tab specify where in cpu address space the registers and display buffer are located. decode addresses register address display buffer address
page 8 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 decode addresses selecting one of the listed evaluation platforms changes the values for the ?register address? and ?display buffer address? fields. the values used for each evalu- ation platform are examples of possible implementa- tions as used by the epson s1d13705 evaluation board. if your hardware implementation differs from the addresses used, select the user-defined option and enter the correct addresses for ?register address? and ?display buffer address?. register address the physical address of the start of register decode space (in hexadecimal). this field is automatically set according to the decode address unless the ?user-defined? decode address is selected. display buffer address the physical address of the start of display buffer decode space (in hexadecimal). this field is automatically set according to the decode address unless the ?user-defined? decode address is selected. note when ?epson s5u13705b00c rev. 2 evaluation board? is selected, the register and display buffer addresses are blanked because the evaluation board uses the pci interface and the decode addresses are determined by the system bios during boot-up. if using the s1d13705 evaluation board on a pci based platform, both windows and the s1d13xxx device driver must be installed. for further information on the s1d13xxx device driver, see the s1d13xxx windows 32-bit windows device driver installation guide , document number x00a-e-003-xx.
epson research and development page 9 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 preferences tab the preference tab contains settings pertaining to the initial display state. during runtime these settings may be changed. color depth sets the initial color depth on the lcd panel. panel swivelview the s1d13705 swivelview feature is capable of rotating the image displayed on an lcd panel 90 in a counter-clockwise direction. this sets the initial orien- tation of the panel. the swivelview feature can be run in two different modes. default mode requires a virtual display which requires more memory but uses less power. enable when this box is checked swivelview is enabled and the lcd display is rotated 90 in a counter-clockwise direction. color depth s wivelview enable alternative mode
page 10 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 alternative mode when alternate mode is selected, swivelview requires no virtual display but consumes more power. for details see the s1d13705 hardware functional specification , document number x27a-a-001-xx. clocks tab the clocks tab is intended to simplify the selection of input clock frequencies and the source of internal clocking signals. for further information regarding clocking and clock sources, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. note options for lcd frame rates are limited to ranges determined by the clock values. changing clock values may modify or invalidate panel settings. confirm all settings on the panel tab after modifying any clock settings. clki pclk source pclk divide mclk source mclk divide clki /2
epson research and development page 11 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 the s1d13705 uses one clock input known as clki. the pixel clock (pclk) and the memory clock (mclk) are both derived from clki. clki this setting determines the frequency of clki. clki is the source for both pclk and mclk. the clki frequency must be selected from the drop down list or by entering the desired frequency in mhz. the actual clki frequency used for configuration is displayed in blue in the actual section. clki/2 selecting this box divides the input clock, clki, in half for internal s1d13705 operations. pclk these settings confirm the signal source and input clock divisor for the pixel clock (pclk). source the pclk source is clki. divide the divide ratio for the clock source signal is 1:1. timing this field shows the actual pclk used by the configu- ration process. mclk these settings confirm the signal source and input clock divisor for the memory clock (mclk). source the mclk source is clki. divide the divide ratio for the clock source signal is 1:1. timing this field shows the actual mclk frequency used by the configuration process.
page 12 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 panel tab the s1d13705 supports many panel types. this tab allows configuration of most panel settings such as panel dimensions, type and timings. panel type selects between passive (stn) and active (tft/d- tfd) panel types. the epson d-tfd panels are supported only in tft compatible mode. several options may change or become unavailable when the stn/tft setting is switched. therefore, confirm all settings on this tab after the panel type is changed. panel type tft/fpline tft/fpframe panel data width fpline fpframe frame rate pixel clock predefined panels polarity polarity panel c olor format 2 panel dimensions non-display periods dual panel frame repeat mask fpshift
epson research and development page 13 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 format 2 selects color stn panel format 2. this option is specif- ically for configuring 8-bit color stn panels. see the s1d13705 hardware functional specification , document number x27a-a-001-xx, for description of format 1 / format 2 data formats. most new panels use the format 2 data format. frame repeat selects frame repeat feature for use with el panels. see the s1d13705 hardware functional specification , document number x27a-a-001-xx, for description of frame repeat. data width selects the panel data width. panel data width is the number of bits of data transferred to the lcd panel on each clock cycle and shouldn?t be confused with color depth which determines the number of displayed colors. when the panel type is stn, the available options are 4 and 8 bit. when an active panel type is selected the available options are 9 and 12 bit. panel color selects between a monochrome or color panel. mask fpshift when selected causes the signal fpshift to be masked. when color or tft panel is selected this option is disabled. dual panel selects between single or dual panel. when the panel type is tft, ?single? is automatically selected and the ?dual? option is greyed out. polarity these settings define the polarity of the fpline and fpframe pulses. fpline polarity selects the polarity of the fpline pulse. refer to the panel specification for the correct polarity of the fpline pulse. fpframe polarity selects the polarity of the fpframe pulse. refer to the panel specification for the correct polarity of the fpframe pulse.
page 14 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 panel dimensions these fields specify the panel width and height. a number of common widths and height are available in the selection boxes. if the width/height of your panel is not listed, enter the actual panel dimensions into the edit field. manually entered pixel widths must be multiples of 8. if a value is entered that does not match these require- ments, a notification box appears and 13705cfg rounds up the value to the next allowable width. non-display periods it is recommended that these automatically generated non-display values be used without adjustment. however, manual adjustment may be useful in fine tuning the non-display width and non-display height. timings these settings show the frame rate and pixel clock timings. frame rate this field displays the effective frame rate of the lcd panel. panel dimensions are fixed therefore frame rate can only be adjusted by changing either pclk or non- display period values. higher frame rates correspond to smaller horizontal and vertical non-display values, or higher pclk frequencies. pixel clock the pixel clock used for the lcd panel is displayed in this field. the pixel clock is dependent on the clki frequency. tft/fpline start pos specifies the delay (in pixels) from the start of the horizontal non-display period to the leading edge of the fpline pulse. this setting is only available when the selected panel type is tft. refer to s1d13705 hardware functional specifi- cation , document number x27a-a-001-xx for a complete description of the fpline pulse settings.
epson research and development page 15 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 tft/fpframe start pos specifies the delay (in lines) from the start of the vertical non-display period to the leading edge of the fpframe pulse. this settings is only available when the selected panel type is tft. refer to s1d13705 hardware functional specifi- cation , document number x27a-a-001-xx, for a complete description of the fpframe pulse settings. predefined panels 13705cfg uses a file ( panels.def ) which lists various panel manufacturers recommended settings. if the file panels.def is present in the same directory as 13705cfg.exe , the settings for a number of predefined panels are available in the drop-down list. if a panel is selected from the list, 13705cfg loads the predefined settings contained in the file.
page 16 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 panel power tab the s5u13705b00c evaluation board is designed to use the gpio0 signal to control the lcd bias power. the following settings allow configuration of the necessary delays. hardware power save enable when this box is checked, hardware power save using gpio0 is enabled. when this box is unchecked, the hardware power save function is not available. power down time delay this setting controls the time delay between when the lcd panel is powered-off and when the s1d13705 control signals are turned off. this setting must be configured according to the specification for the panel being used. this value is only used by epson evaluation software designed for the s5u13705b00c evaluation board. power down time delay power up time delay hardware power save enable
epson research and development page 17 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 power up time delay this setting controls the time delay between when the s1d13705 control signals are turned on and the lcd panel is powered-on. this setting must be configured according to the specification for the panel being used. this value is only used by epson evaluation software designed for the s5u13705b00c evaluation board. registers tab the registers tab allows viewing and direct editing the s1d13705 register values. scroll up and down the list of registers and view their configured values based on the settings in the previous tabs. individual register settings may be changed by double- clicking on the register in the listing. manual changes to the registers are not checked for errors, so caution is warranted when directly editing these values. it is strongly recommended that the s1d13705 hardware functional specification , document number x27a-a-001-xx be referred to before making a manual register settings. manually entered values may be changed by 13705cfg if further configuration changes are made on the other tabs. in this case, the user is notified.
page 18 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 note manual changes to the registers may have unpredictable results if incorrect values are entered. 13705cfg menus the following sections describe each of the options in the f ile and h elp menus. open... from the menu bar, select ?file?, then ?open...? to display the open file dialog box. the open option allows 13705cfg to open files containing hal configuration infor- mation. when 13705cfg opens a file it scans the file for an identification string, and if found, reads the configuration information. this may be used to quickly arrive at a starting point for register configuration. the only requirement is that the file being opened must contain a valid s1d13705 hal library information block. 13705cfg supports a variety of executable file formats. select the file type(s) 13705cfg should display in the files of type drop-down list and then select the filename from the list and click on the o pen button. note 13705cfg is designed to work with utilities programmed using a given version of the hal. if the configuration structure contained in the executable file differs from the ver- sion 13705cfg expects the open will fail and an error message is displayed. this may happen if the version of 13705cfg is substantially older, or newer, than the file being opened.
epson research and development page 19 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 save from the menu bar, select ?file?, then ?save? to initiate the save action. the save menu option allows a fast save of the configuration information to a file that was opened with the open menu option. note this option is only available once a file has been opened. note 13705cfg.exe can be configured by making a copy of the file 13705cfg.exe and config- uring the copy. it is not possible to configure the original while it is running. save as... from the menu bar, select ?file?, then ?save as...? to display the save as dialog box. ?save as? is very similar to save except a dialog box is displayed allowing the user to name the file before saving. using this technique a tester can configure a number of files differing only in configuration information and name (e.g. bmp60hz.exe, bmp72hz.exe, bmp75hz.exe where only the frame rate changes in each of these files). note when ?save as? is selected then an exact duplicate of the file as opened by the ?open? option is created containing the new configuration information.
page 20 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 configure multiple after determining the desired configuration, ?configure multiple? allows the information to be saved into one or more executable files built with the hal library. from the menu bar, select ?file?, then ?configure multiple? to display the configure multiple dialog box.this dialog box is also displayed when a file(s) is dragged onto the 13705cfg window. the left pane lists files available for configuration; the right pane lists files that have been selected for configuration. files can be selected by clicking the ?add? or ?add all? buttons, double clicking any file in the left pane, or by dragging the file(s) from windows explorer. selecting ?show all files? displays all files in the selected directory, whereas selecting ?show conf. files only? will display only files that can be configured using 13705cfg. the configuration values can be saved only to specific files. the file must have been compiled using the 13705 hal library. checking ?preserve physical addresses? instructs 13705cfg to use the register and display buffer address values the files were previously configured with. addresses specified in the general tab are discarded. this is useful when configuring several programs for various hardware platforms at the same time. for example, if configuring pci, mpc and idp based programs at the same time for a new panel type, the physical addresses for each are retained. this feature is primarily intended for the test lab where multiple hardware configurations exist and are being tested.
epson research and development page 21 vancouver design center 13705cfg configuration program s1d13705 issue date: 02/03/11 x27a-b-001-03 export after determining the desired configuration, ?export? permits the user to save the register information as a variety of ascii text file formats. the following is a list and description of the currently supported output formats:  a c header file for use in writing hal library based applications.  a c header file which lists each register and the value it should be set to.  a c header file for use in developing window ce display drivers.  a c header file for use in developing display drivers for other operating systems such as linux, qnx, and vxworks ugl or windml.  a comma delimited text file containing an offset, a value, and a description for each s1d13705 register. after selecting the file format, click the ?export as...? button to display the file dialog box which allows the user to enter a filename before saving. before saving the configuration file, clicking the ?preview? button starts notepad with a copy of the configuration file about to be saved. when the c header file for s1d13705 wince drivers option is selected as the export type, additional options are available and can be selected by clicking on the options button. the options dialog appears as: mode number selects the mode number for use in the header file
page 22 epson research and development vancouver design center s1d13705 13705cfg configuration program x27a-b-001-03 issue date: 02/03/11 enable tooltips tooltips provide useful information about many of the items on the configuration tabs. placing the mouse pointer over nearly any item on any tab generates a popup window containing helpful advice and hints. to enable/disable tooltips check/uncheck the ?tooltips? option form the ?help? menu. note tooltips are enabled by default. erd on the web this ?help? menu item is actually a hotlink to the epson research and development website. selecting ?help? then ?erd on the web? starts the default web browser and points it to the erd product web site. the latest software, drivers, and documentation for the s1d13705 is available at this website. about 13705cfg selecting the ?about 13705cfg? option from the ?help? menu displays the about dialog box for 13705cfg. the about dialog box contains version information and the copyright notice for 13705cfg. comments  on any tab particular options may be grayed out if selecting them would violate the operational specification of the s1d13705 (i.e. selecting tft or stn on the panel tab enables/disables options specific to the panel type).  the file panels.def is a text file containing operational specifications for several supported, and tested, panels. this file can be edited with any text editor.  13705cfg allows manually altering register values. the manual changes may violate memory and lcd timings as specified in the s1d13705 hardware functional specifi- cation , document number x27a-a-001-xx. if this is done, unpredictable results may occur. epson research and development, inc. does not assume liability for any damage done to the display device as a result of configuration errors.
s1d13705 embedded memory lcd controller 13705show demonstration program document no. x27a-b-002-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705show demonstration program x27a-b-002-02 issue date: 01/02/12 this page left blank
epson research and development page 3 vancouver design center 13705show demonstration program s1d13705 issue date: 01/02/12 x27a-b-002-02 13705show 13705show is a program designed to demonstrate rudimentary display capabilities of the s1d13705. the display abilities are shown by drawing a pattern image to the video display at all supported color depths (1, 2, 4 and 8 bits-per-pixel) the 13705show display utility must be configured and/or compiled to work with your hardware platform. the program 13705cfg.exe can be used to configure 13705show. consult the 13705cfg users guide, document number x27a-b-001-xx, for more infor- mation on configuring s1d13705 utilities. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically, this is done by serial communications. the pc uses a terminal program to send control commands and infor- mation to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. s1d13705 supported evaluation platforms 13705show has been tested with the following s1d13705 supported evaluation platforms:  pc system with an x86 processor. both 16-bit and 32-bit code is supported.  m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor.  sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the s1d13705 programming notes and examples manual, document number x26a-g-002-xx.
page 4 epson research and development vancouver design center s1d13705 13705show demonstration program x27a-b-002-02 issue date: 01/02/12 installation pc intel platform for 16-bit program version: copy the file 13705show.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13x0x.vxd as described in the s1d13x0x 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705show.exe to a directory that is in the dos path on your hard drive. embedded platform download the program 13705show to the system. usage pc platform : at the prompt, type: 13705show [/a][b=n][/l][/p [/alt]][/vertical][/noinit][/?] embedded platform : execute 13705show and at the prompt, type the command line argument(s). where: /a automatically cycle through all video modes. b=? starts 13705show at a user specified bit-per-pixel (bpp) level, where ? can be: 1, 2, 4, or 8. /l set landscape mode. /p set portrait mode. /alt use alternate portrait mode /vertical displays vertical line pattern. /update continuously update display memory. /noinit bypass register initialization and use values which are currently in the registers. /? displays the help screen.
epson research and development page 5 vancouver design center 13705show demonstration program s1d13705 issue date: 01/02/12 x27a-b-002-02 comments  the /alt command line switch can only be used with the /p (portrait) mode switch. this switch will have no effect in landscape display modes.  the intel 32-bit version of 13705show is designed to work under either windows 9x or windows nt. to install the 32-bit windows device driver s1d13x0x.vxd see the s1d13x0x 32-bit windows device driver installation guide, document number x00a-e-003-xx. the 16-bit version of the program runs under dos with no dos extenders. the lack of a dos extender means that the 16-bit program can only be used on a hardware platform where the s1d13705 is addressed below 1mb. program messages error: did not find a 13705 device. the hal was unable to read the revision code register on the s1d13705. ensure that the s1d13705 hardware is installed and that the hardware platfo rm has been configured co rrectly. also check that the display memory address has been configured correctly. error: unable to locate/load s1d13xxx.vxd 13705play was unable to load a required driver. the file s1d13xxx.vxd should be located in x:\windows\system or in x:\winnt\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003- xx. error: an ioctl error occurred this message indicates an error at the io contro l layer occurred. the usual cause for this is an incorrect hardware configuration. error: the hal returned an unknown error this message should never be displayed, it indicates that 13705show is unable to determine the cause of an error returned from the hal. error: could not initialize device the call to initialize the s1d13705 registers failed. not enough memory for www x hhh x bpp!! this message is printed if there is insufficient display memory to show a complete image with a width of www pixels, a height of hhh pixels and a color depth of bpp bit-per-pixel. in this case the mode is skipped and the next display mode is attempted.
page 6 epson research and development vancouver design center s1d13705 13705show demonstration program x27a-b-002-02 issue date: 01/02/12 this page left blank
s1d13705 embedded memory lcd controller 13705splt display utility document no. x27a-b-003-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705splt display utility x27a-b-003-02 issue date: 01/02/12 this page left blank
epson research and development page 3 vancouver design center 13705splt display utility s1d13705 issue date: 01/02/12 x27a-b-003-02 13705splt 13705splt demonstrates s1d13705 split screen capability by showing two different areas of display memory on the screen simultaneously. screen 1 memory is located at the start of the display buffer and is filled with horizontal bars. screen 2 memory is located immediately after screen 1 in the display buffer and is filled with vertical bars. on either user input or elapsed time, the line compare register value is changed to adjust the amount of display area taken up by each screen. the 13705splt display utility must be configured and/or compiled to work with your hardware platform. the program 13705cfg.exe can be used to configure 13705splt. consult the 13705cfg users guide, document number x27a-b-001-xx, for more infor- mation on configuring s1d13705 utilities. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically, this is done by serial communications. the pc uses a terminal program to send control commands and infor- mation to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. s1d13705 supported evaluation platforms 13705splt has been tested with the following s1d13705 supported evaluation platforms:  pc system with an x86 processor. both 16-bit and 32-bit code is supported.  m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor.  sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the s1d13705 programming notes and examples manual, document number x26a-g-002-xx.
page 4 epson research and development vancouver design center s1d13705 13705splt display utility x27a-b-003-02 issue date: 01/02/12 installation pc intel platform for 16-bit program version: copy the file 13705splt.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13x0x.vxd as described in the s1d13x0x 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705splt.exe to a directory that is in the dos path on your hard drive. embedded platform download the program 13705splt to the system. usage pc platform : at the prompt, type 13705splt [/a] [/?] embedded platform : execute 13705splt and at the prompt, type the command line argument. where: no argument enables manual split screen operation /a enables automatic split screen operation (a timer is used to move screen 2) /? display the help screen after starting 13705splt the following keyboard commands are available. manual mode: , u move screen 2 up , d move screen 2 down home covers screen 1 with screen 2 end displays only screen 1 automatic mode: any key change the direction of split screen movement (for pc only) both modes: b changes the color depth (bits-per-pixel) esc exits 13705splt
epson research and development page 5 vancouver design center 13705splt display utility s1d13705 issue date: 01/02/12 x27a-b-003-02 13705splt example 1. type ?13705splt /a? to automatically move the split screen. 2. press ?b? to change the color depth from 1 bit-per-pixel to 2 bit-per-pixel. 3. repeat step 2 for the remaining color depths (4 and 8 bit-per-pixel). 4. press to exit the program. program messages error: did not find a 13705 device. the hal was unable to read the revision code register on the s1d13705. ensure that the s1d13705 hardware is installed and that the hardware platfo rm has been configured co rrectly. also check that the display memory address has been configured correctly. error: unable to locate/load s1d13xxx.vxd 13705play was unable to load a required driver. the file s1d13xxx.vxd should be located in x:\windows\system or in x:\winnt\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003- xx. error: an ioctl error occurred this message indicates an error at the io contro l layer occurred. the usual cause for this is an incorrect hardware configuration. error: the hal returned an unknown error this message should never be displayed, it indicates that 13705solt is unable to determine the cause of an error returned from the hal. not enough memory for www x hhh x bpp!! this message is displayed if there is insufficient display memory to contain two complete images with a width of www pixels, a height of hhh pixels, and a color depth of bpp bit-per-pixel. in this case the mode is skipped and the next display mode is attempted.
page 6 epson research and development vancouver design center s1d13705 13705splt display utility x27a-b-003-02 issue date: 01/02/12 this page left blank
s1d13705 embedded memory lcd controller 13705virt display utility document no. x27a-b-004-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705virt display utility x27a-b-004-02 issue date: 01/02/12 this page left blank
epson research and development page 3 vancouver design center 13705virt display utility s1d13705 issue date: 01/02/12 x27a-b-004-02 13705virt 13705virt demonstrates the virtual display capability of the s1d13705. a virtual display is where the image to be displayed is larger than the physical display device. the display surface is used a viewing window. the entire image can be seen only by panning and scrolling. the 13705virt display utility must be configured and/or compiled to work with your hardware platform. the program 13705cfg.exe can be used to configure 13705virt. consult the 13705cfg users guide, document number x27a-b-001-xx, for more infor- mation on configuring s1d13705 utilities. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically, this is done by serial communications. the pc uses a terminal program to send control commands and infor- mation to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. s1d13705 supported evaluation platforms 13705virt has been tested with the following s1d13705 supported evaluation platforms:  pc system with an x86 processor.  m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor.  sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the s1d13705 programming notes and examples manual, document number x26a-g-002-xx.
page 4 epson research and development vancouver design center s1d13705 13705virt display utility x27a-b-004-02 issue date: 01/02/12 installation pc intel platform for 16-bit program version: copy the file 13705virt.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13x0x.vxd as described in the s1d13x0x 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705virt.exe to a directory that is in the dos path on your hard drive. embedded platform download the program 13705virt to the system. usage pc platform : at the prompt, type 13705virt [/a] [/l] [/p] [/alt] [/w=???] . embedded platform : execute 13705virt and at the prompt, type the command line argument. where: no argument panning and scrolling is performed manually (defaults to virtual width = = physical width x 2 and maximum virtual height) /a panning and scrolling is performed automatically /l force landscape display mode to be set /p force portrait display mode to be set /alt enable alternate portrait mode. selecting this option implies /p /w=??? specifies the virtual display width which includes both on-screen and off-screen size the maximum virtual width, not including display area, for each display mode is: 1 bpp ? 4096 pixels 2 bpp ? 2048 pixels 4 bpp ? 1024 pixels 8 bpp ? 512 pixels
epson research and development page 5 vancouver design center 13705virt display utility s1d13705 issue date: 01/02/12 x27a-b-004-02 the following keyboard commands are for navigation within the program. manual mode: scrolls up scrolls down pans to the left pans to the right home moves the display screen so that the upper right of the virtual screen shows in the upper right of the display end moves the display screen so that the lower left of the virtual screen shows in the lower left of the display automatic mode: any key changes the direction of screen both modes: b changes the color depth (bits-per-pixel) esc exits 13705virt 13705virt example 1. type ?13705virt /a? to automatically pan and scroll. 2. press "b" to change the bits-per-pixel from 1 bit-per-pixel to 2 bits-per-pixel. 3. repeat steps 1 and 2 for the remaining color depths (4 and 8 bit-per-pixel). 4. press to exit the program.
page 6 epson research and development vancouver design center s1d13705 13705virt display utility x27a-b-004-02 issue date: 01/02/12 program messages error: did not find a 13705 device. the hal was unable to read the revision code regi ster on the s1d13705. ensure that the s1d13705 hardware is installed and that the hardware platfo rm has been configured correctly. also check that the display memory address has been configured correctly. error: unable to locate/load s1d13xxx.vxd 13705play was unable to load a required driver. the file s1d13xxx.vxd should be located in x:\windows\system or in x:\winnt\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003- xx. error: an ioctl error occurred this message indicates an error at the io contro l layer occurred. the usual cause for this is an incorrect hardware configuration. error: the hal returned an unknown error this message should never be displayed, it indicates that 13705virt is unable to determine the cause of an error returned from the hal. unable to use virtual mode at xx bpp this message is displayed if there is insufficient display memory to show a complete virtual image. specifically, the maximum number of lines for the image is calcul ated using the current virtual width. if the number of possible lines is less than the physical display size this message is displayed. try restarting the program and manually specify a smaller virtual width.
s1d13705 embedded memory lcd controller 13705play diagnostic utility document no. x27a-b-005-04 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705play diagnostic utility x27a-b-005-04 issue date: 01/07/04 this page left blank
epson research and development page 3 vancouver design center 13705play diagnostic utility s1d13705 issue date: 01/07/04 x27a-b-005-04 13705play 13705play is a utility which allows the user to easily read/write the s1d13705 registers, look-up table and display memory. the user interface for 13705play is similar to the dos debug program; commands are received from the standard input device, and output is sent to the standard output device (console for intel and terminal for embedded platforms). this utility requires the target platform to support standard io. 13705play commands can be entered interactively using a keyboard/monitor or they can be executed from a script file. scripting is a powerful feature which allows command sequences played back from a file thus avoiding having to retype lengthy sequences. the 13705play display utility must be configured and/or compiled to work with your hardware platform. the program 13705cfg.exe can be used to configure 13705play. consult the 13705cfg users guide, document number x27a-b-001-xx, for more infor- mation on configuring s1d13705 utilities. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically, this is done by serial communications. the pc uses a terminal program to send control commands and infor- mation to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. s1d13705 supported evaluation platforms 13705play has been tested with the following s1d13705 supported evaluation platforms:  pc system with an x86 processor. both 16-bit and 32-bit code is supported.  m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor.  sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the s1d13705 programming notes and examples manual, document number x26a-g-002-xx.
page 4 epson research and development vancouver design center s1d13705 13705play diagnostic utility x27a-b-005-04 issue date: 01/07/04 installation pc intel platform for 16-bit program version: copy the file 13705play.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13xxx.vxd as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705play.exe to a directory that is in the dos path on your hard drive. embedded platform download the program 13705play to the system. usage pc platform : at the prompt, type 13705play [/?] . embedded platform : execute 13705play and at the prompt, type the command line argument. where: /? displays program revision information. the following commands are valid within the 13705play program. x index [data] reads/writes the registers. writes data to the register specified by the index when ?data? is specified; otherwise the register is read. xa reads all registers. l index [data1 data2 data3] reads/writes look-up table (lut) values. writes data to the lut index when ?data? is specified; otherwise the lut index is read. data must consist of 3 bytes: 1 red, 1 green, 1 blue. and range in value from 0x00 to 0x0f. la reads all lut values. f[w] addr1 addr2 data . . . fills bytes or words from address 1 to address 2 with data. data can be multiple values (e.g. f 0 20 1 2 3 4 fills address 0 to 0x20 with a repeating pattern of 1 2 3 4).
epson research and development page 5 vancouver design center 13705play diagnostic utility s1d13705 issue date: 01/07/04 x27a-b-005-04 r[w] addr [count] reads ?count? of bytes or words from the address specified by ?addr?. if ?count? is not specified, then 16 bytes/words are read. w[w] addr data . . . writes bytes or words of data to address specified by ?addr?. data can be multiple values e.g. w 0 1 2 3 4 writes the byte values 1 2 3 4 starting at address 0). i initializes the chip with user specified configuration. m [bpp] returns information about the current mode. if ?bpp? is specified then set the requested color depth. p 0|1|2 sets software power save mode 0-2. power save mode 0 is normal operation. h [lines] halts after specified lines of display. this feature halts the display during long read operations to prevent data from scrolling off the display. set 0 to disable. q quits this utility. ? displays help information. 13705play example 1. type ?13705play? to start the program. 2. type "?" for help. 3. type "i" to initialize the registers. 4. type "xa" to display the contents of the registers. 5. type "x 5" to read register 5. 6. type "x 3 10" to write 10 hex to register 3. 7. type "f 0 400 aa" to fill the first 400 hex bytes of display memory with aa hex. 8. type "f 0 14000 aa" to fill 80k bytes of display memory with aa hex. 9. type "r 0 ff" to read the first 100 hex bytes of display memory. 10. type "q" to exit the program.
page 6 epson research and development vancouver design center s1d13705 13705play diagnostic utility x27a-b-005-04 issue date: 01/07/04 scripting 13705play can be driven by a script file. this is useful when:  there is no standard display output to monitor command entry and results.  various registers must be quickly changed faster than can achieved by typing.  the same series of keystrokes is being entered time and again. a script file is an ascii text file with one 13705play command per line. all scripts must end with a ?q? (quit) command in order to return control to the operating system. the semi- colon is used as a comment delimitor. everything on a line after the semi-colon will be ignored. on a pc platform, a typical script command line is: ?13705play < dumpregs.scr > results?. this causes the script file ?dumpregs.scr? to be interpreted and the results to be sent to the file ?results.? example 1: the script file ?dumpregs.scr? can be created with and text editor and will look like the following: ; this file initializes the s1d13705 and reads the registers i ; initialize the registers. xa ; dump all the registers la ; and the lut q ; exit comments  all numeric values are considered to be hexadecimal unless identified otherwise. for example, 10 = 10h = 16 decimal; 10t = 10 decimal; 010b = 2 decimal.  redirecting commands from a script file (pc platform) allows those commands to be executed as though they were typed.
epson research and development page 7 vancouver design center 13705play diagnostic utility s1d13705 issue date: 01/07/04 x27a-b-005-04 program messages >>> warning: did not detect s1d13705 <<< the hal was unable to read the revision code register on the s1d13705. ensure that the s1d13705 hardware is installed and that the hardware platfo rm has been configured co rrectly. also check that the display memory address has been configured correctly. error: unable to locate/load s1d13xxx.vxd 13705play was unable to load a required driver. the file s1d13xxx.vxd should be located in x:\windows\system or in x:\winnt\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003- xx. error: an ioctl error occurred this message indicates an error at the io contro l layer occurred. the usual cause for this is an incorrect hardware configuration. error: the hal returned an unknown error this message should never be displayed, it indicates that 13705show is unable to determine the cause of an error returned from the hal.
page 8 epson research and development vancouver design center s1d13705 13705play diagnostic utility x27a-b-005-04 issue date: 01/07/04 this page left blank
s1d13705 embedded memory lcd controller 13705bmp demonstration program document no. x27a-b-006-03 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705bmp demonstration program x27a-b-006-03 issue date: 01/02/12 this page left blank
epson research and development page 3 vancouver design center 13705bmp demonstration program s1d13705 issue date: 01/02/12 x27a-b-006-03 13705bmp 13705bmp is a demonstration program for the s1d13705 which can read and display .bmp format (windows bitmap) files. the 13705bmp display utility is designed to operate on an x86 based personal computer. there are both 16-bit and 32-bit versions of 13705bmp. the 16-bit version is for use under dos when the s1d13705 evaluation board has been configured for d0000. the 32-bit version is intended for use under win32. before use 13705bmp must be configured for the display system. consult documentation for the program 13705cfg.exe which can be used to configure 13705bmp. 13705bmp is not supported on non-pc platforms. installation for 16-bit program version: copy the file 13705bmp.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13x0x.vxd as described in the s1d13x0x 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705bmp.exe to a directory that is in the dos path on your hard drive. usage at the prompt, type: 13705bmp bmp_file [/a[time]] [/l] [/p] [/noinit] [/?] . where: bmp_file the name of the file to display /a[time] automatic mode returns to the operating system after ?time? seconds. if time is not specified the default is 5 seconds. this option is intended for use with batch files to automate displaying a series of images. /l override default configuration settings and set landscape display mode. /p override default configuration settings and set portrait display mode. /noinit bypass the register initialization and use the current setup use this option to override changes that take place to the timing registers /? displays the help screen comments  13705bmp currently views only windows bmp format images.
page 4 epson research and development vancouver design center s1d13705 13705bmp demonstration program x27a-b-006-03 issue date: 01/02/12 program messages error: did not find an s1d13705 device. the hal was unable to locate an s1d13705 at th e configured address. check that the correct physical address was configured into 13705bmp.exe error: unable to locate/load s1d13xxx.vxd the file s1d13xxx.vxd is required by the 32-bit version of the 13705bmp. check that the .vxd file is in c:\windows\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003-xx. error: an ioctl error occurred. the device driver s1d13xxx.vxd was unable to assign memory. check that the pc hardware is configured correctly and that 13705bmp has been configured with the correct memory location. error: the hal returned an unknown error. this error message should never bee seen. contact erd. error: could not initialize device. the hal failed to initialize the s1d13705. failed to open .bmp file '?.....?' 13705bmp was unable to open the .bmp file ?.....? specified on the command line. ?.....? is not a valid bitmap file. while performing validity checks it was determined that the file ?.....? is either not a valid .bmp file or is of an unsupported format. error: unable to set a suitable display mode. 13705bmp was unable to set a display mode to view the image with. error: currently unable to process images greater than 8 bpp. 13705bmp can decode images of 8bpp or less color depth. try reducing the color depth of your image. error: image larger than display memory size. the amount of memory required by this image is mo re than the amount of memory available to the s1d13705. try choosing a smaller image. error: unable to allocate enough memory to decode the image. in order to decode a .bmp image 13705bmp n eeds to allocate some ad ditional system memory. this message is seen if the call to allocate additional memory fails.
s1d13705 embedded memory lcd controller 13705pwr power save utility document no. x27a-b-007-03 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 13705pwr power save utility x27a-b-007-03 issue date: 01/07/04 this page left blank
epson research and development page 3 vancouver design center 13705pwr power save utility s1d13705 issue date: 01/07/04 x27a-b-007-03 13705pwr the 13705pwr power save utility is a tool to assist in the testing of the software and hardware power save modes. refer to the section titled ?power save modes? in the s1d13705 programming notes and examples manual, document number x27a-g-002-xx, and the s1d13705 functional hardware specification, document number x27a-a-001-xx for further information. the 13705pwr utility must be configured and/or compiled to work with your hardware platform. consult documentation for the program 13705cfg.exe which can be used to configure 13705pwr. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically this is done by serial communications, where the pc uses a terminal program to send control commands and information to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. s1d13705 supported evaluation platforms 13705pwr has been designed to work with the following s1d13705 supported evaluation platforms:  pc system with an x86 processor. both 16-bit and 32-bit code is supported.  m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor.  sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the s1d13705 ?programming notes and examples? manual, document number x27a-g-002-xx.
page 4 epson research and development vancouver design center s1d13705 13705pwr power save utility x27a-b-007-03 issue date: 01/07/04 installation pc platform for 16-bit program version: copy the file 13705pwr.exe to a directory that is in the dos path on your hard drive. for 32-bit program version: install the 32-bit windows device driver s1d13xxx.vxd as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003-xx. copy the file 13705pwr.exe to a directory that is in the dos path on your hard drive. embedded platform download the program 13705pwr to the system. usage pc platform : at the prompt, type 13705pwr [s0] [s1] [h0] [h1] . embedded platform: execute 13705pwr and at the prompt, type the command line argument. where: s0 resets software power save mode s1 sets software power save mode h0 resets (disables) hardware power save mode (reg[03h] bit 2) h1 sets (enables) hardware power save mode (reg[03h] bit 2) /? displays this usage message
epson research and development page 5 vancouver design center 13705pwr power save utility s1d13705 issue date: 01/07/04 x27a-b-007-03 program messages error: did not find a 13705 device. the hal was unable to read the revision code register on the s1d13705. ensure that the s1d13705 hardware is installed and that the hardware platfo rm has been configured co rrectly. also check that the display memory address has been configured correctly. error: unable to locate/load s1d13xxx.vxd 13705play was unable to load a required driver. the file s1d13xxx.vxd should be located in x:\windows\system or in x:\winnt\system. if the file is not there, install it as described in the s1d13xxx 32-bit windows device driver installation guide, document number x00a-e-003- xx. error: an ioctl error occurred this message indicates an error at the io contro l layer occurred. the usual cause for this is an incorrect hardware configuration. error: the hal returned an unknown error this message should never be displayed, it indicates that 13705show is unable to determine the cause of an error returned from the hal. software power save mode set. this message is a confirmation that the register se tting to enable software power save mode has been set. software power save mode reset. this message is a confirmation that the register setting to disable software power save mode has been set. hardware power save mode is now enabled. this message confirms that hard ware initiated power save mode has been enabled. the s1d13705 will enter a hardware power save mode upon application of the appropriate logic level to the hardware power save mode input pin. hardware power save mode is now disabled. this message confirms that the register setting to disable hardware initiated power save mode has been set. in this state the s1d13705 should ignore the state of the hardware power save mode input pin.
page 6 epson research and development vancouver design center s1d13705 13705pwr power save utility x27a-b-007-03 issue date: 01/07/04 this page left blank
s1d13705 embedded memory lcd controller windows? ce 2.x display drivers document number: x27a-e-001-03 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. mi crosoft and windows are register ed trademarks of microsoft corpor ation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 this page left blank
epson research and development page 3 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 windows? ce 2.x display drivers the windows ce display driver is designed to support the s1d13705 embedded memory lcd controller running under the microsoft windows ce 2.x operating system. the driver is capable of: 4 and 8 bit-per-pixel landscape modes (no rotation), and 4 and 8 bit-per-pixel swivelview? 270 degree mode. this document and the source code for the windows ce drivers are updated as appropriate. before beginning any development, please check the epson electronics america website at www.eea.epson.com or the epson research and development website at www.erd.epson.com for the latest revisions. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 example driver builds the following sections describe how to build the windows ce display driver for: 1. windows ce 2.0 using a command-line interface. 2. windows ce platform builder 2.1x using a command-line interface. in all examples ?x:? refers to the drive letter where platform builder is installed. build for cepc (x86) on windows ce 2.0 using a command-line interface to build a windows ce v2.0 display driver for the cepc (x86) platform using a s5u13705b00c evaluation board, follow the instructions below: 1. install microsoft windows nt v4.0 or 2000. 2. install microsoft visual c/c++ version 5.0 or 6.0. 3. install the microsoft windows ce embedded toolkit (etk) by running setup.exe from the etk compact disc #1. 4. create a new project by following the procedure documented in ?creating a new project directory? from the windows ce etk v 2.0. alternately, use the current ?demo7? project included with the etk v2.0. follow the steps below to create a ?x86 demo7? shortcut on the windows nt v4.0 desktop which uses the current ?demo7? project: a. right click on the ?start? menu on the taskbar. b. click on the item ?open all users? and the ?start menu? window will come up. c. click on the icon ?programs?. d. click on the icon ?windows ce embedded development kit?. e. drag the icon ?x86 demo1? onto the desktop using the right mouse button. f. click on ?copy here?. g. rename the icon ?x86 demo1? on the desktop to ?x86 demo7? by right click- ing on the icon and choosing ?rename?. h. right click on the icon ?x86 demo7? and click on ?properties? to bring up the ?x86 demo7 properties? window. i. click on ?shortcut? and replace the string ?demo1? under the entry ?target? with ?demo7?. j. click on ?ok? to finish. 5. create a sub-directory named s1d13705 under x:\wince\platform\cepc\drivers\dis- play. 6. copy the source code to the s1d13705 subdirectory.
epson research and development page 5 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 7. edit the file x:\wince\platform\cepc\drivers\display\dirs and add s1d13705 into the list of directories. 8. edit the file platform.bib (located in x:\wince\platform\cepc\files) to set the de- fault display driver to the file epson.dll (epson.dll will be created during the build in step 13). replace or comment out the following lines in platform.bib: if cepc_ddi_vga2bpp ddi.dll $(_flatreleasedir)\ddi_vga2.dll nk sh endif if cepc_ddi_vga8bpp ddi.dll $(_flatreleasedir)\ddi_vga8.dll nk sh endif if cepc_ddi_vga2bpp ! if cepc_ddi_vga8bpp ! ddi.dll $(_flatreleasedir)\ddi_s364.dll nk sh endif endif with this line: ddi.dll $(_flatreleasedir)\epson.dll nk sh 9. the file mode0.h (located in x:\wince\platform\cepc\drivers\display\s1d13705) contains the register values required to set the screen resolution, color depth (bpp), display type, active display (lcd/crt/tv), display rotation, etc. before building the display driver, refer to the descriptions in the file mode0.h for the default settings of the driver. if the default does not match the configuration you are building for then mode0.h will have to be regenerated with the correct informa- tion. use the program 13705cfg to generate the header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual , document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, export the file as a ?c header file for s1d13705 wince drivers?. save the new configuration as mode0.h in x:\wince\platform\cepc\drivers\display\s1d13705, replacing the original configura- tion file. 10. edit the file platform.reg to match the screen resolution, color depth (bpp), ac- tive display (lcd/crt/tv) and rotation information in mode.h. plat- form.reg is located in x:\wince\platform\cepc\files.
page 6 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 for example, the display driver section of platform.reg should be as follows when using a 320x240 lcd panel with a color depth of 8 bpp in swivelview 0 (landscape) mode: ; default for epson display driver ; 320x240 at 8 bits/pixel, lcd display, no rotation ; useful hex values ; 1024=0x400, 768=0x300 640=0x280 480=0x1e0 320=140 240=0xf0 [hkey_local_machine\drivers\display\s1d13705] "width"=dword:140 "height"=dword:f0 "bpp"=dword:8 ?activedisp?=dword:1 ?rotation?=dword:0 11. delete all the files in the x:\wince\release directory, and delete x:\wince\plat- form\cepc\*.bif 12. generate the proper building environment by double-clicking on the sample project icon (i.e. x86 demo7). 13. type blddemo at the command prompt of the x86 demo7 window to generate a windows ce image file (nk.bin). build for cepc (x86) on windows ce platform builder 2.1x using a command-line interface throughout this section 2.1x refers to either 2.11 or 2.12 as appropriate. 1. install microsoft windows nt v4.0 or 2000. 2. install microsoft visual c/c++ version 5.0 or 6.0. 3. install platform builder 2.1x by running setup.exe from compact disk #1. 4. follow the steps below to create a ?build epson for x86? shortcut which uses the current ?minshell? project icon/shortcut on the windows desktop. a. right click on the ?start? menu on the taskbar. b. click on the item ?explore?, and ?exploring -- start menu? window will come up. c. under ?x:\winnt\profiles\all users\start menu\programs\microsoft windows ce platform builder\x86 tools?, find the icon ?build minshell for x86?. d. drag the icon ?build minshell for x86? onto the desktop using the right mouse button.
epson research and development page 7 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 e. choose ?copy here?. f. rename the icon ?build minshell for x86? to ?build epson for x86? by right clicking on the icon and choosing ?rename?. g. right click on the icon ?build epson for x86? and click on ?properties? to bring up the ?build epson for x86 properties? window. h. click on ?shortcut? and replace the string ?minshell? under the entry ?target? with ?epson?. i. click on ?ok? to finish. 5. create an epson project. a. make an epson directory under x:\wince\public. b. copy maxall and its sub-directories (x:\wince\public\maxall) to the epson di- rectory. xcopy /s /e x: \wince\public\maxall\*.* \wince\public\epson c. rename x:\wince\public\epson\maxall.bat to epson.bat. d. edit epson.bat to add the following lines to the end of the file: @echo on set cepc_ddi_s1d13705=1 @echo off 6. make an s1d13705 directory under x:\wince\platform\cepc\drivers\display, and copy the s1d13705 driver source code into x:\wince\platform\cepc\drivers\dis- play\s1d13705. 7. edit the file x:\wince\platform\cepc\drivers\display\dirs and add s1d13705 into the list of directories. 8. edit the file x:\wince\platform\cepc\files\platform.bib and make the following two changes: a. insert the following text after the line ?if odo_nodisplay !?: if cepc_ddi_s1d13705 ddi.dll $(_flatreleasedir)\epson.dll nk sh endif b. find the section shown below, and insert the lines as marked: if cepc_ddi_s1d13705 ! insert this line if cepc_ddi_s3virge ! if cepc_ddi_ct655x ! if cepc_ddi_vga8bpp !
page 8 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 ddi.dll $(_flatreleasedir)\ddi_s364.dll nk sh endif endif endif endif insert this line 9. the file mode0.h (located in x:\wince\platform\cepc\drivers\display\s1d13705) contains the register values required to set the screen resolution, color depth (bpp), display type, active display (lcd/crt/tv), display rotation, etc. before building the display driver, refer to the descriptions in the file mode0.h for the default settings of the driver. if the default does not match the configuration you are building for then mode0.h will have to be regenerated with the correct informa- tion. use the program 13705cfg to generate the header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual , document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, export the file as a ?c header file for s1d13705 wince drivers?. save the new configuration as mode0.h in x:\wince\platform\cepc\drivers\display\s1d13705, replacing the original configura- tion file. 10. edit the file platform.reg to match the screen resolution, color depth (bpp), ac- tive display (lcd/crt/tv) and rotation information in mode.h. plat- form.reg is located in x:\wince\platform\cepc\files. for example, the display driver section of platform.reg should be as follows when using a 320x240 lcd panel with a color depth of 8 bpp in swivelview 0 (landscape) mode: ; default for epson display driver ; 320x240 at 8 bits/pixel, lcd display, no rotation ; useful hex values ; 1024=0x400, 768=0x300 640=0x280 480=0x1e0 320=140 240=0xf0 [hkey_local_machine\drivers\display\s1d13705] "width"=dword:140 "height"=dword:f0 "bpp"=dword:8 ?activedisp?=dword:1 ?rotation?=dword:0 11. delete all the files in \wince\release directory and delete x:\wince\platform\cepc\*.bif
epson research and development page 9 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 12. generate the proper building environment by double-clicking on the epson project icon --?build epson for x86?. 13. type blddemo at the command prompt of the ?build epson for x86? window to generate a windows ce image file (nk.bin).
page 10 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 installation for cepc environment once the nk.bin file is built, the cepc environment can be started by booting either from a floppy or hard drive configured with a windows 9x operating system. the two methods are described below. 1. to start cepc after booting from a floppy drive: a. create a bootable floppy disk. b. edit config.sys on the floppy disk to contain only the following line: device=a:\himem.sys c. edit autoexec.bat on the floppy disk to contain the following lines: mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\nk.bin d. copy loadcepc.exe and himem.sys to the bootable floppy disk. search for the loadcepc utility in your windows ce directories. e. copy nk.bin to c:\. f. boot the system from the bootable floppy disk. 2. to start cepc after booting from a hard drive: a. copy loadcepc.exe to c:\. search for the loadcepc utility in your windows ce directories. b. edit config.sys on the hard drive to contain only the following line: device=c:\himem.sys c. edit autoexec.bat on the hard drive to contain the following lines: mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\nk.bin d. copy nk.bin and himem.sys to c:\. e. boot the system.
epson research and development page 11 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 configuration there are several issues to consider when configuring the display driver. the issues cover debugging support, register initialization values and memory allocation. each of these issues is discussed in the following sections. compile switches there are several switches, specific to the s1d13705 display driver, which affect the display driver. the switches are added or removed from the compile options in the file sources. wincever this option is automatically set to the numerical version of wince for version 2.12 or later. if the environment variable, _winceosver is not defined, then wincever will default 2.11. the display driver may test against this option to support different wince version-specific features. debug_monitor this option enables the use of the debug monitor. the debug monitor can be invoked when the display driver is first loaded and can be used to view registers, and perform a few debugging tasks. the debug monitor is still under development and is untested. this option should remain disabled unless you are performing specific debugging tasks that require the debug monitor. test_bitmap this option allows the debug monitor to display a test bitmap. this bitmap is big and will make the display driver considerably larger. the flag debug_monitor must also be enabled for this option to work. this option should be disabled unless the image is required for debugging.
page 12 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 mode file a second variable which will affect the finished display driver is the register configurations contained in the mode file. the mode tables (contained in files mode0.h, mode1.h, mode2.h . . .) contain register information to control the desired display mode. the mode tables must be generated by the configuration program 13705cfg.exe. the display driver comes with example mode tables. by default, only mode0.h is used by the display driver. new mode tables can be created using the 13705cfg program. edit the #include section of mode.h to add the new mode table. if you only support a single display mode, you do not need to add any information to the wince registry. if, however, you support more that one display mode, you should create registry values (see below) that will establish the initial display mode. if your display driver contains multiple mode tables, and if you do not add any registry values, the display driver will default to the first mode table in your list. to select which display mode the display driver should use upon boot, add the following lines to your platform.reg file: [hkey_local_machine\drivers\display\s1d13705] ?width?=dword:140 ?height?=dword:f0 ?bpp?=dword:8 ?rotation?=dword:0 ?refreshrate?=dword:3c ?flags?=dword:1 note that all dword values are in hexadecimal, therefore 140h = 320, f0h = 240, and 3ch = 60. the value for ?flags? should be 1 (lcd). when the display driver starts, it will read these values in the registry and attempt to match a mode table against them. all values must be present and valid for a match to occur, otherwise the display driver will default to the first mode table in your list. a wince desktop application (or control panel applet) can change these registry values, and the display driver will select a different mode upon warmboot. this allows the display driver to support different display configurations and/or orientations. an example appli- cation that controls these registry values will be made available upon the next release of the display driver; preliminary alpha code is available by special request.
epson research and development page 13 vancouver design center windows? ce 2.x display drivers s1d13705 issue date: 01/06/07 x27a-e-001-03 comments  the display driver is cpu independent, allowing use of the driver for several windows ce platform builder supported platforms.  when using 13705cfg.exe to produce multiple mode tables, make sure you change the mode number in the wince tab for each mode table you generate. the display driver supports multiple mode tables, but only if each mode table has a unique mode number.  at this time, the drivers have been tested on the x86 cpus and have been run with version 2.0 of the etk, platform builder v2.1x.
page 14 epson research and development vancouver design center s1d13705 windows? ce 2.x display drivers x27a-e-001-03 issue date: 01/06/07 this page left blank
s1d13705 embedded memory lcd controller wind river windml v2.0 display drivers document number: x27a-e-002-03 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 wind river windml v2.0 display drivers x27a-e-002-03 issue date: 01/04/06 this page left blank
epson research and development page 3 vancouver design center wind river windml v2.0 display drivers s1d13705 issue date: 01/04/06 x27a-e-002-03 wind river windml v2.0 display drivers the wind river windml v2.0 display drivers for the s1d13705 embedded memory lcd controller are intended as ?reference? source code for oems developing for wind river?s windml v2.0. the driver package provides support for 8 bit-per-pixel color depth. the source code is written for portability and contains functionality for most features of the s1d13705. source code modification is required to provide a smaller, more efficient driver for mass production (e.g. swivelview? support may be removed for products not requiring display rotation). the windml display drivers are designed around a common configuration include file called mode0.h which is generated by the configuration utility 13705cfg. this design allows for easy customization of clocks, decode addresses, rotation, etc. by oems. for further information on 13705cfg, see the 13705cfg configuration program user manual , document number x27a-b-001-xx. note the windml display drivers are provided as ?reference? source code only. they are in- tended to provide a basis for oems to develop their own drivers for windml v2.0. these drivers are not backwards compatible with ugl v1.2. for information on the ugl v1.2 display drivers, see wind river ugl v1.2 display drivers , document number x27a-e-003-xx. this document and the source code for the windml display drivers is updated as appro- priate. please check the epson electronics america website at http://www.eea.epson.com or the epson research and development website at http://www.erd.epson.com for the latest revisions before beginning any development. we appreciate your comments on our documentation. please contact us via email at documentation@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 wind river windml v2.0 display drivers x27a-e-002-03 issue date: 01/04/06 building a windml v2.0 display driver the following instructions produce a bootable disk that automatically starts the ugl demo program. these instructions assume that wind river?s tornado platform is already installed. note for the example steps where the drive letter is given as ?x:?. substitute ?x? with the drive letter that your development environment is on. 1. create a working directory and unzip the windml display driver into it. from a command prompt or gui interface create a new directory (e.g. x:\13705). unzip the file 13705windml.zip to the newly created working directory. the files will be unzipped to the directory ?x:\13705\8bpp?. 2. configure for the target execution model. this example build creates a vxworks image that fits onto and boots from a single floppy diskette. in order for the vxworks image to fit on the disk certain modifica- tions are required. replace the file ?x:\tornado\target\config\pcpentium\config.h? with the file ?x:\13705\8bpp\file\config.h?. the new config.h file removes networking compo- nents and configures the build image for booting from a floppy disk. note rather than simply replacing the original config.h file, rename it so the file can be kept for reference purposes. 3. build a boot rom image. from the tornado tool bar, select build -> build boot rom. select ?pcpentium? as the bsp and ?bootrom_uncmp? as the image. 4. create a bootable disk (in drive a:). from a command prompt change to the directory ?x:\tornado\host\x86-win32\bin? and run the batch file torvars.bat . next, change to the directory ?x:\tornado\tar- get\config\pcpentium? and type: mkboot a: bootrom_uncmp 5. if necessary, generate a new mode0.h configuration file. the file mode0.h contains the register values required to set the screen resolution, col- or depth (bpp), display type (passive or active matrix), rotation, etc. the mode0.h file included with the drivers, may not contain applicable values and must be regenerated. the configuration program 13705cfg can be used to build a new mode0.h file. if building for 8 bpp, place the new mode0.h file in the directory ?x:\13705\8bpp\file?.
epson research and development page 5 vancouver design center wind river windml v2.0 display drivers s1d13705 issue date: 01/04/06 x27a-e-002-03 note mode0.h should be created using the configuration utility 13705cfg. for more infor- mation on 13705cfg, see the 13705cfg configuration program user manual , docu- ment number x27a-b-001-xx available at www.erd.epson.com. 6. build the windml v2.0 library. from a command prompt change to the directory ?x:\tornado\host\x86-win32\bin? and run the batch file torvars.bat . next, change to the directory ?x:\tornado\tar- get\src\ugl? and type the command: make cpu=pentium ugl 7. open the s1d13705 workspace. from the tornado tool bar, select file->open workspace...->existing->browse... and select the file ?x:\13705\8bpp\13705.wsp?. 8. add support for single line comments. the windml v2.0 display driver source code uses single line comment notation, ?//?, rather than the ansi conventional comments, ?/*...*/?. to add support for single line comments follow these steps: a. in the tornado ?workspace views? window, click on the ?builds? tab. b. expand the ?8bpp builds? view by clicking on the ?+? next to it. the ex- panded view will contain the item ?default?. right-click on ?default? and select ?properties...?. a ?properties:? window will appear. c. select the ?c/c++ compiler? tab to display the command switches used in the build. remove the ?-ansi? switch from the line that contains ?-g -mpen- tium -ansi -nostdinc -drw_multi_thread?. (refer to gnu toolkit user's guide for details) 9. compile the vxworks image. select the ?builds? tab in the tornado ?workspace views? window. right-click on ?8bpp files? and select ?dependencies...?. click on ?ok? to regenerate project file dependencies for ?all project files?. right-click on ?8bpp files? and select ?rebuild all(vxworks)? to build vxworks. 10. copy the vxworks file to the diskette. from a command prompt or through the windows interface, copy the file ?x:\13705\8bpp\default\vxworks? to the bootable disk created in step 4. 11. start the vxworks demo. boot the target pc with the vxworks bootable diskette to run the ugldemo auto- matically.
page 6 epson research and development vancouver design center s1d13705 wind river windml v2.0 display drivers x27a-e-002-03 issue date: 01/04/06 this page left blank
s1d13705 embedded memory lcd controller wind river ugl v1.2 display drivers document number: x27a-e-003-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. mi crosoft and windows are register ed trademarks of microsoft corpor ation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 wind river ugl v1.2 display drivers x27a-e-003-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center wind river ugl v1.2 display drivers s1d13705 issue date: 01/02/13 x27a-e-003-02 wind river ugl v1.2 display drivers the wind river ugl v1.2 display drivers for the s1d13705 embedded memory lcd controller are intended as ?reference? source code for oems developing for wind river?s ugl v1.2. the drivers provide support for 8 bit-per-pixel color depth. the source code is written for portability and contains functionality for most features of the s1d13705. source code modification is required to provide a smaller, more efficient driver for mass production. the ugl display drivers are designed around a common configuration include file called mode0.h which is generated by the configuration utility 13705cfg. this design allows for easy customization of display type, clocks, addresses, rotation, etc. by oems. for further information on 13705cfg, see the 13705cfg configuration program user manual , document number x27a-b-001-xx. this document and the source code for the ugl display drivers are updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com or the epson research and development website at http://www.erd.epson.com for the latest revisions before beginning any development. we appreciate your comments on our documentation. please contact us via e-mail at documentation@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 wind river ugl v1.2 display drivers x27a-e-003-02 issue date: 01/02/13 building a ugl v1.2 display driver the following instructions produce a bootable disk that automatically starts the ugl demo software. these instructions assume that the wind river tornado platform is correctly installed. note for the example steps where the drive letter is given as ?x:?. substitute ?x? with the drive letter that your development environment is on. 1. create a working directory and unzip the ugl display driver into it. using a command prompt or gui interface create a new directory (e.g. x:\13705). unzip the file 13705ugl.zip to the newly created working directory. the files will be unzipped to the directory ?x:\13705\8bpp?. 2. configure for the target execution model. this example build creates a vxworks image that fits onto and boots from a single floppy diskette. in order for the vxworks image to fit on the disk certain modifica- tions are required. replace the file ?x:\tornado\target\config\pcpentium\config.h? with the file ?x:\13705\8bpp\file\config.h?. the new config.h file removes networking compo- nents and configures the build image for booting from a floppy disk. note rather than simply replacing the original config.h file, rename it so the file can be kept for reference purposes. 3. build a boot rom image. from the tornado tool bar, select build -> build boot rom. select ?pcpentium? as the bsp and ?bootrom_uncmp? as the image. 4. create a bootable disk (in drive a:). from a command prompt in the directory ?x:\tornado\target\config\pcpentium? type mkboot a: bootrom_uncmp 5. if necessary, generate a new mode0.h configuration file. the file mode0.h contains the register values required to set the screen resolution, col- or depth (bpp), display type, rotation, etc. the mode0.h, included with the drivers, sets the display for 256x64 190 hz output to an lcd display. if this setting is inappropriate then mode0.h must be regenerated. the configuration program 13705cfg can be used to build a new mode0.h file. place the new mode0.h file in ?x:\13705\8bpp\file?.
epson research and development page 5 vancouver design center wind river ugl v1.2 display drivers s1d13705 issue date: 01/02/13 x27a-e-003-02 note mode0.h should be created using the configuration utility 13705cfg. for more infor- mation on 13705cfg, see the 13705cfg configuration program user manual , docu- ment number x27a-b-001-xx available at www.erd.epson.com. 6. open the s1d13705 workspace. from the tornado tool bar, select file->open workspace...->existing->browse... and select the file ?x:\13705\8bpp\13705.wsp?. 7. add support for single line comments. the ugl v1.2 display driver source code uses single line comment notation, ?//?, rather than the ansi conventional comments, ?/* . . . */?. to add support for single line comments follow these steps: a. in the tornado ?workspace? window, click on the ?builds? tab. b. expand the ?8bpp builds? view by clicking on the ?+? next to it. the expanded view will contain the item ?default?. right-click on ?de- fault? and select ?properties...?. a properties window will appear. c. select the ?c/c++ compiler? tab to display the command switches used in the build. remove the ?-ansi? switch from the line that con- tains ?-g -mpentium -ansi -nostdinc -drw_multi_thread?. (refer to gnu toolkit user's guide for details) 8. compile the vxworks image. select the ?files? tab in the tornado ?workspace? window. right-click on ?8bpp files? and select ?dependencies...?. click on ?ok? to regenerate project file dependencies for ?all project files?. right-click on ?8bpp files? and select ?rebuild all(vxworks)? to build vxworks. 9. copy the vxworks file to the diskette. from a command prompt or through the windows interface, copy the file ?x:\13705\8bpp\default\vxworks? to the bootable disk created in step 4. 10. start the vxworks demo. boot the target pc with the vxworks bootable diskette to run the ugldemo auto- matically.
page 6 epson research and development vancouver design center s1d13705 wind river ugl v1.2 display drivers x27a-e-003-02 issue date: 01/02/13 this page left blank
s1d13705 embedded memory lcd controller linux console driver document number: x27a-e-004-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation.
page 2 epson research and development vancouver design center s1d13705 linux console driver x27a-e-004-02 issue date: 01/09/19 this page left blank
epson research and development page 3 vancouver design center linux console driver s1d13705 issue date: 01/09/19 x27a-e-004-02 linux console driver the linux console driver for the s1d13705 embedded memory lcd controller is intended as ?reference? source code for oems developing for linux, and supports 4 and 8 bit-per-pixel color depths. a graphical user interface (gui) such as gnome can obtain the frame buffer address from this driver allowing the linux gui the ability to update the display. the console driver is designed around a common configuration include file called s1d13705.h, which is generated by the configuration utility 13705cfg. this design allows for easy customization of display type, clocks, decode addresses, rotation, etc. by oems. for further information on 13705cfg, see the 13705cfg configuration program user manual , document number x27a-b-001-xx. note the linux console driver is provided as ?reference? source code only. the driver is in- tended to provide a basis for oems to develop their own drivers for linux. this document and the source code for the linux console drivers are updated as appro- priate. please check the epson research and development website at http://www.erd.epson.com for the latest revisions or before beginning any development. we appreciate your comments on our documentation. please contact us via e-mail at documentation@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 linux console driver x27a-e-004-02 issue date: 01/09/19 building the console driver for linux kernel 2.2.x follow the steps below to construct a copy of the linux operating system using the s1d13705 as the console display device. these instructions assume that the gnu devel- opment environment is installed and the user is familiar with gnu and the linux operating system. 1. acquire the linux kernel source code. you can obtain the linux kernel source code from your linux supplier or download the source from: ftp://ftp.kernel.org. the s1d13705 reference driver requires linux kernel 2.2.x or greater. the example s1d13705 reference driver available on www.erd.epson.com was built using red hat linux 6.1, kernel version 2.2.17. for information on building the kernel refer to the readme file at: ftp://ftp.linuxberg.com/pub/linux/kernel/readme note before continuing with modifications for the s1d13705, you should ensure that you can build and start the linux operating system. 2. unzip the console driver files. using a zip file utility, unzip the s1d13705 archive to a temporary directory. (e.g. /tmp) when completed the files: s1d13xxxfb.c s1d13705.h config.in fbmem.c fbcon-cfb4.c, and makefile should be located in the temporary directory. 3. copy the console driver files to the build directory. copy the files /tmp/s1d13xxxfb.c and /tmp/s1d13705.h to the directory /usr/src/linux/drivers/video. copy the remaining source files /tmp/config.in /tmp/fbmem.c /tmp/fbcon-cfb4.c, and /tmp/makefile into the directory /usr/src/linux/drivers/video replacing the files of the same name.
epson research and development page 5 vancouver design center linux console driver s1d13705 issue date: 01/09/19 x27a-e-004-02 if your kernel version is not 2.2.17 or you want to retain greater control of the build process then use a text editor and cut and paste the sections dealing with the epson driver in the corresponding files of the same names. 4. modify s1d13705.h the file s1d13705.h contains the register values required to set the screen resolution, color depth (bpp), display type, display rotation, etc. before building the console driver, refer to the descriptions in the file s1d13705.h for the default settings of the console driver. if the default does not match the configura- tion you are building for then s1d13705.h will have to be regenerated with the correct information. use the program 13705cfg to generate the required header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual, document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, choose ?file->export? and select the ?c header file for s1d13705 generic drivers? option. save the new configuration as s1d13705.h in the /usr/src/linux/drivers/video, replacing the original configuration file. 5. configure the video options. from the command prompt in the directory /usr/src/linux run the command: make menuconfig this command will start a text based interface which allows the selection of build time parameters. from the text interface under ?console drivers? options, select: ?support for frame buffer devices? ?epson lcd/crt controllers support? ?s1d13705 support? ?advanced low level driver options? ?xbpp packed pixels support? * * where x is the color depth being compile for. once you have configured the kernel options, save and exit the configuration utility. 6. compile and install the kernel build the kernel with the following sequence of commands: make dep make clean make bzimage /sbin/lilo (if running lilo)
page 6 epson research and development vancouver design center s1d13705 linux console driver x27a-e-004-02 issue date: 01/09/19 7. boot to the linux operating system if you are using lilo (linux loader), modify the lilo configuration file as discussed in the kernel build readme file. if there were no errors during the build, from the com- mand prompt run: lilo and reboot your system. note in order to use the s1d13705 console driver with x server, you need to configure the x server to use the fbdev device. a good place to look for the necessary files and in- structions on this process is on the internet at www.xfree86.org
epson research and development page 7 vancouver design center linux console driver s1d13705 issue date: 01/09/19 x27a-e-004-02 building the console driver for linux kernel 2.4.x follow the steps below to construct a copy of the linux operating system using the s1d13705 as the console display device. these instructions assume that the gnu devel- opment environment is installed and the user is familiar with gnu and the linux operating system. 1. acquire the linux kernel source code. you can obtain the linux kernel source code from your linux supplier or download the source from: ftp://ftp.kernel.org. the s1d13705 reference driver requires linux kernel 2.4.x or greater. the example s1d13705 reference driver available on www.erd.epson.com was built using red hat linux 6.1, kernel version 2.4.5. for information on building the kernel refer to the readme file at: ftp://ftp.linuxberg.com/pub/linux/kernel/readme note before continuing with modifications for the s1d13705, you should ensure that you can build and start the linux operating system. 2. unzip the console driver files. using a zip file utility, unzip the s1d13705 archive to a temporary directory. (e.g. /tmp) when completed the files: config.in fbmem.c fbcon-cfb4.c makefile should be located in the temporary directory (/tmp), and the files: makefile s1d13xxxfb.c s1d13705.h should be located in a sub-directory called epson within the temporary directory (/tmp/epson). 3. copy the console driver files to the build directory. make the directory /usr/src/linux/drivers/video/epson. copy the files /tmp/epson/s1d13xxxfb.c /tmp/epson/s1d13705.h /tmp/epson/makefile to the directory /usr/src/linux/drivers/video/epson.
page 8 epson research and development vancouver design center s1d13705 linux console driver x27a-e-004-02 issue date: 01/09/19 copy the remaining source files /tmp/config.in /tmp/fbmem.c /tmp/fbcon-cfb4.c /tmp/makefile into the directory /usr/src/linux/drivers/video replacing the files of the same name. if your kernel version is not 2.4.5 or you want to retain greater control of the build process then use a text editor and cut and paste the sections dealing with the epson driver in the corresponding files of the same names. 4. modify s1d13705.h the file s1d13705.h contains the register values required to set the screen resolution, color depth (bpp), display type, display rotation, etc. before building the console driver, refer to the descriptions in the file s1d13705.h for the default settings of the console driver. if the default does not match the configura- tion you are building for then s1d13705.h will have to be regenerated with the correct information. use the program 13705cfg to generate the required header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual, document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, choose ?file->export? and select the ?c header file for s1d13705 generic drivers? option. save the new configuration as s1d13705.h in the /usr/src/linux/drivers/video, replacing the original configuration file. 5. configure the video options. from the command prompt in the directory /usr/src/linux run the command: make menuconfig this command will start a text based interface which allows the selection of build time parameters. from the options presented select: ?code maturity level? options ?prompt for development and/or incomplete drivers? ?console drivers? options ?frame-buffer support? ?support for frame buffer devices (experimental)? ?epson lcd/crt/tv controller support? ?epson s1d13705 support? ?advanced low-level driver options? ?xbpp packed pixels support? * * where x is the color depth being compile for. once you have configured the kernel options, save and exit the configuration utility.
epson research and development page 9 vancouver design center linux console driver s1d13705 issue date: 01/09/19 x27a-e-004-02 6. compile and install the kernel build the kernel with the following sequence of commands: make dep make clean make bzimage /sbin/lilo (if running lilo) 7. boot to the linux operating system if you are using lilo (linux loader), modify the lilo configuration file as discussed in the kernel build readme file. if there were no errors during the build, from the com- mand prompt run: lilo and reboot your system. note in order to use the s1d13705 console driver with x server, you need to configure the x server to use the fbdev device. a good place to look for the necessary files and in- structions on this process is on the internet at www.xfree86.org
page 10 epson research and development vancouver design center s1d13705 linux console driver x27a-e-004-02 issue date: 01/09/19 this page left blank
s1d13705 embedded memory lcd controller qnx photon v2.0 display driver document number: x27a-e-005-01 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 qnx photon v2.0 display driver x27a-e-005-01 issue date: 01/09/10 this page left blank
epson research and development page 3 vancouver design center qnx photon v2.0 display driver s1d13705 issue date: 01/09/10 x27a-e-005-01 qnx photon v2.0 display driver the photon v2.0 display drivers for the s1d13705 color lcd controller are intended as ?reference? source code for oems developing for qnx platforms. the driver package provides support for 8 bit-per-pixel color depths. the source code is written for portability and contains functionality for most features of the s1d13705. source code modification is required to provide a smaller driver for mass production. the current revision of the driver is designed for use with either qnx rtp or qnx4 from the latest product cd (dec. 99). the photon v2.0 display driver is designed around a common configuration include file called s1d13705.h, which is generated by the configuration utility 13705cfg. this design allows for easy customization of display type, clocks, decode addresses, etc. by oems. for further information on 13705cfg, see the 13705cfg configuration program user manual , document number x27a-b-001-xx. note the qnx display drivers are provided as ?reference? source code only. they are intend- ed to provide a basis for oems to develop their own drivers for qnx photon v2.0. this document and the source code for the qnx display drivers are updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com or the epson research and development website at http://www.erd.epson.com for the latest revisions before beginning any development. we appreciate your comments on our documentation. please contact us via e-mail at documentation@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 qnx photon v2.0 display driver x27a-e-005-01 issue date: 01/09/10 building the photon v2.0 display driver the following steps build the photon v2.0 display driver and integrate it into the qnx operating system. these instructions assume the qnx developer environment is correctly installed and the developer is familiar with building for the qnx operating system. unpack the graphics driver development kit archive 1. install the qnx ddk package using the package manager utility. for information about the drivers development kit contact qnx directly. 2. once the ddk package is installed, copy the directory tree /usr/src/gddk_v1.0 into the project directory. 3. change directory to project/gddk_1.0/devg. 4. unpack the display driver files using the commands: #gunzip s1d13705.tar.gz #tar ?xvf s1d13705.tar this unpacks the files into the directory project/gddk_1.0/devg/s1d13705. configure the driver the file s1d13705_8.h contains register values required to set the screen resolution, color depth (bpp), display type, etc. the s1d13705.h file included with the drivers may not contain applicable values and must be regenerated. the configuration program 13705cfg can be used to build new s1d13705_8.h files. note s1d13705.h should be created using the configuration utility 13705cfg. for more in- formation on 13705cfg, see the 13705cfg configuration program user manual , document number x27a-b-001-xx available at www.erd.epson.com. build the driver the first time the driver is built, the following command ensures that all drivers and required libraries are built. at the root of the project source tree, type make . note to build drivers for x86 nto type ?oslist=nto cpulist=x86 make?. further builds do not require all libraries to be re-built. to build only the s1d13705 display driver, change to the directory gddk_1.0/devg/s1d13705 and type make .
epson research and development page 5 vancouver design center qnx photon v2.0 display driver s1d13705 issue date: 01/09/10 x27a-e-005-01 installing the driver the build step produces two library images:  lib/disputil/nto/x86/so/libdisputil.so  lib/ffb/nto/x86/so/libffb.so for the loader to locate them, the files need to be renamed and copied to the lib directory. 1. rename libdisputil.so to libdisputil.so.1 and libffb.so to libffb.so.1. 2. copy the files new files libdisputil.so.1 and libffb.so.1 to the directory /usr/lib. 3. copy the file devg-s1d13705.so to the /lib/dll directory. note to locate the file devg-s1d13705.so, watch the output of the ?true? command during the makefile build. 4. modify the trap file graphics-modes in the /etc/system/config directory by inserting the following lines at the top of the file. io-graphics -dldevg-s1d13705.so -g320x240x8 -i0 -d0x0,0x0;#320,240,8 epson run the driver note for the remaining steps the s5u13705b00c evaluation board must be installed on the test platform. note because this is an isa board, a memory hole must be created in the 15 megabyte range. this is done in the bios settings. it is recommended that the driver be verified before starting qnx with the s1d13705 as the primary display . to verify the driver: 1. copy the data file from the services/graphics/tests/bench directory to the current di- rectory. use test8.raw for 8-bpp.
page 6 epson research and development vancouver design center s1d13705 qnx photon v2.0 display driver x27a-e-005-01 issue date: 01/09/10 2. type the following command at the root of the project source tree (gddk_v1.00 direc- tory): services/graphics/tests/bench/nto/x86/o/bench -dlhardware/devg/s1d13705/ nto/x86/dll/devg-s1d13705.so -m w , h , c , f -d0x0,0x0 where: w is the configured width of the display h is the configured height of the display c is the color depth in bpp (i.e. 8) f is the configured frame rate this command starts the bench utility which will initialize the driver as the secondary display and exercise the drivers main functions. if the display appears satisfactory, restart qnx photon and the restart will result in the s1d13705 display driver becoming the primary display device. comments  to restore the display driver to the default, comment out changes made to the trap file graphics-trapfile.
s1d13xxx 32-bit windows device driver installation guide document no. x00a-e-003-04 copyright ? 1999, 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13xxx 32-bit windows device driver installation guide x00a-e-003-04 issue date: 01/04/17 this page left blank
epson research and development page 3 vancouver design center s1d13xxx 32-bit windows device driver installation guide issue date: 01/04/17 x00a-e-003-04 s1d13xxx 32-bit windows device driver installation guide this manual describes the installation of the windows 9x/me/nt 4.0/2000 device drivers for the s5u13xxxb00x series of epson evaluation boards. the file s1d13xxx.vxd is required for using the epson supplied intel32 evaluation and test programs for the s1d13xxx family of lcd controllers with windows 9x/me. the file s1d13xxx.sys is required for using the epson supplied intel32 evaluation and test programs for the s1d13xxx family of lcd controllers with windows nt 4.0/2000. the file s1d13xxx.inf is the install script. for updated drivers, ask your sales representative or visit epson electronics america on the world wide web at www.eea.epson.com. driver requirements installation windows nt version 4.0 all evaluation boards require the driver to be installed as follows. 1. install the evaluation board in the computer and boot the computer. 2. copy the files s1d13xxx.inf and s1d13xxx.sys to a directory on a local hard drive. 3. right click your mouse on the file s1d13xxx.inf and select install from the menu. 4. windows will install the device driver and ask you to restart. video controller : s1d13xxx display type : n/a bios : n/a dos program : no dos version : n/a windows program : yes, windows 9x/me/nt 4.0/2000 device driver windows dos box : n/a windows full screen : n/a os/2 : n/a
page 4 epson research and development vancouver design center s1d13xxx 32-bit windows device driver installation guide x00a-e-003-04 issue date: 01/04/17 windows 2000 all pci bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. windows will detect the new hardware as a new pci device and bring up the found new hardware dialog box. 3. click next. 4. the new hardware wizard will bring up the dialog box to search for a suitable driver. 5. click next. 6. when windows does not find the driver it will allow you to specify the location of it. type the driver location or select browse to find it. 7. click next. 8. windows 2000 will open the installation file and show the option epson pci bridge card. select this file and click open. 9. windows then shows the path to the file. click ok. 10. click next. 11. click finish. all isa bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. go to the control panel and select add/remove hardware, click next. 3. select add/troubleshoot a device, and click next. windows 2000 will attempt to detect any new plug and play device and fail. 4. the choose hardware device dialog box appears. select add new hardware and click next. 5. select no i want to select from a list and click next. 6. select other device from the list and click next. 7. click have disk. 8. specify the location of the driver files, select the s1d13xxx inf file and click open. 9. click ok.
epson research and development page 5 vancouver design center s1d13xxx 32-bit windows device driver installation guide issue date: 01/04/17 x00a-e-003-04 windows 98/me all pci bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. windows will detect the new hardware as a new pci device and bring up the add new hardware dialog box. 3. click next. 4. windows will look for the driver. when windows does not find the driver it will al- low you to specify the location of it. type the driver location or select browse to find it. 5. click next. 6. windows will open the installation file and show the option epson pci bridge card. 7. click finish. all isa bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. go to the control panel and double-click on add new hardware to launch the add new hardware wizard. click next. 3. windows will attempt to detect any new plug and play device and fail. click next. 4. windows will ask you to let it detect the hardware, or allow you to select from a list. select no, i want to select the hardware from a list and click next. 5. from the list select other devices and click next. 6. click have disk and type the path to the driver files, or select browse to find the driver. 7. click ok. 8. the driver will be identified as epson pci bridge card. click next. 9. click finish.
page 6 epson research and development vancouver design center s1d13xxx 32-bit windows device driver installation guide x00a-e-003-04 issue date: 01/04/17 windows 95 osr2 all pci bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. windows will detect the card as a new pci device and launch the update device driver wizard. if the driver is on floppy disk 3. place the disk into drive a: and click next. 4. windows will find the epson pci bridge card. 5. click finish to install the driver. 6. windows will ask you to restart the system. if the driver is not on floppy disk 3. click next, windows will search the floppy drive and fail. 4. windows will attempt to load the new hardware as a standard vga card. 5. click cancel. the driver must be loaded from the control panel under add/new hardware. 6. select no for windows to detect new hardware. 7. click next. 8. select other devices from hardware type and click next. 9. click have disk. 10. specify the location of the driver and click ok. 11. click ok. 12. epson pci bridge card will appear in the list. 13. click next. 14. windows will install the driver. 15. click finish. 16. windows will ask you to restart the system. 17. windows will re-detect the card and ask you to restart the system.
epson research and development page 7 vancouver design center s1d13xxx 32-bit windows device driver installation guide issue date: 01/04/17 x00a-e-003-04 all isa bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. go to the control panel and select add new hardware. 3. click next. 4. select no and click next. 5. select other devices and click next. 6. click have disk. 7. specify the location of the driver files and click ok. 8. click next. 9. click finish. previous versions of windows 95 all pci bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. windows will detect the card. 3. select driver from disk provided by manufacturer. 4. click ok. 5. specify a path to the location of the driver files. 6. click ok. 7. windows will find the s1d13xxx.inf file. 8. click ok. 9. click ok and windows will install the driver.
page 8 epson research and development vancouver design center s1d13xxx 32-bit windows device driver installation guide x00a-e-003-04 issue date: 01/04/17 all isa bus evaluation cards 1. install the evaluation board in the computer and boot the computer. 2. go to the control panel and select add new hardware. 3. click next. 4. select no and click next. 5. select other devices from the hardware types list. 6. click have disk. 7. specify the location of the driver files and click ok. 8. select the file s1d13xxx.inf and click ok. 9. click ok. 10. the epson pci bridge card should be selected in the list window. 11. click next. 12. click next. 13. click finish.
s1d13705 embedded memory lcd controller s5u13705b00c rev. 1.0 isa bus evaluation board user manual document number: x27a-g-005-03 copyright ? 1999, 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 installation and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 cpu/bus interface connector pinouts . . . . . . . . . . . . . . . . . . . . . . . . 11 5 host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6 technical description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1 embedded memory support . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.2 isa bus support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.2.1 display adapter card support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.2.2 expanded memory manager support . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.3 non-isa bus support . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.4 decoding logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.5 clock input support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.6 lcd panel voltage setting . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.7 monochrome lcd panel support . . . . . . . . . . . . . . . . . . . . . . . 17 6.8 color passive lcd panel support . . . . . . . . . . . . . . . . . . . . . . 1 7 6.9 color tft/d-tfd lcd panel support . . . . . . . . . . . . . . . . . . . . 17 6.10 power save modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.11 adjustable lcd panel negative power supply . . . . . . . . . . . . . . . . . 18 6.12 adjustable lcd panel positive power supply . . . . . . . . . . . . . . . . . . 18 6.13 cpu/bus interface header strips . . . . . . . . . . . . . . . . . . . . . . . 18 7 parts list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 8 schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
page 4 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 list of tables table 2-1: configuration dip switch settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2-3: jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 3-1: lcd signal connector (j5) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: cpu/bus connector (h1) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4-2: cpu/bus connector (h2) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 5-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 8-1: s1d13705b00c schematic diagram (1 of 4) . . . . . . . . . . . . . . . . . . . . . . . 20 figure 8-2: s1d13705b00c schematic diagram (2 of 4) . . . . . . . . . . . . . . . . . . . . . . . 21 figure 8-3: s1d13705b00c schematic diagram (3 of 4) . . . . . . . . . . . . . . . . . . . . . . . 22 figure 8-4: s1d13705b00c schematic diagram (4 of 4) . . . . . . . . . . . . . . . . . . . . . . . 23
page 6 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 1 introduction this manual describes the setup and operation of the s5u13705b00c rev. 1.0 evaluation board. implemented using the s1d13705 embedded memory color lcd controller, the s5u13705b00c board is designed for the 16-bit isa bus environment. to accommodate other bus architectures, the s5u13705b00c board also provides cpu/bus interface connectors. for more information regarding the s1d13705, refer to the s1d13705 hardware functional specification, document number x27a-a-001-xx. 1.1 features  80-pin qfp14 package.  smt technology for all appropriate devices.  4/8-bit monochrome and color passive lcd panel support.  9/12-bit lcd tft/d-tfd panel support.  selectable 3.3v or 5v lcd panel support.  oscillator support for clki (up to 50mhz with internal clock divider or 25mhz with no internal clock divider).  embedded 80k byte sram display buffer for 1/2/4 bit-per-pixel (bpp), 2/4/16-level gray shade display and 1/2/4/8 bpp, 2/4/16/256 level color display.  support for software and hardware power save modes.  on-board adjustable lcd bias positive power supply (+23v to +40v).  on-board adjustable lcd bias negative power supply (-23v to -14v).  16-bit isa bus support.  cpu/bus interface header strips for non-isa bus support.
page 8 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 2 installation and configuration the s1d13705 has four configuration inputs, cnf[3:0], which are read on the rising edge of reset# and are fully configurable on this evaluation board. one six-position dip switch is provided on the board to configure the four configuration inputs, select the s5u13705b00c memory/register start address, and enable/disable hardware power save mode. the following settings are recommended when using the s5u13705b00c with the isa bus. table 2-1: configuration dip switch settings switch signal closed (0 or low) open (1 or high) s1-1 cnf0 see ?host bus selection? table below see ?host bus selection? table below s1-2 cnf1 s1-3 cnf2 s1-4 cnf3 little endian big endian s1-5 addr memory/register start address = c0000h memory/register start address = f00000h s1-6 gpio0 hardware suspend disable hardware suspend enable = recommended settings (configured for isa bus support) table 2-2: host bus selection s1-3 s1-2 s1-1 bs# host bus interface 0 0 0 x sh-4 bus interface 0 0 1 x sh-3 bus interface 010xreserved 0 1 1 x mc68k bus interface #1, 16-bit 100xreserved 1 0 1 x mc68k bus interface #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = recommended settings (configured for isa bus support)
epson research and development page 9 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 table 2-3: jumper settings description 1-2 2-3 jp1 iovdd selection 5.0v iovdd 3.3v iovdd jp2 rd/wr# signal selection pulled up to iovdd no connection jp3 bs# signal selection pulled up to iovdd no connection jp4 lcd panel voltage selection 5v lcd panel 3.3v lcd panel jp6 lcdpwr polarity active low (?lcdpwr#?) active high (?lcdpwr?) = recommended settings (jp1 through jp3 configured for isa bus support)
page 10 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 3 lcd interface pin mapping note 1. un-used gpio pins must be connected to io v dd . 2. inverse video is enabled on fpdat11 by reg[02h] bit 1. table 3-1: lcd signal connector (j5) pinout connector single passive panel dual passive panel color tft/d-tfd pin name pin # color mono color mono 4-bit 8-bit 8-bit alternate format 4-bit 8-bit 8-bit 8-bit 9-bit 12-bit bfpdat0 1 driven 0 d0 ld0 driven 0 d0 d0 ld0 r2 r3 bfpdat1 3 driven 0 d1 ld1 driven 0 d1 d1 ld1 r1 r2 bfpdat2 5 driven 0 d2 ld2 driven 0 d2 d2 ld2 r0 r1 bfpdat3 7 driven 0 d3 ld3 driven 0 d3 d3 ld3 g2 g3 bfpdat4 9 d0 d4 ud0 d0 d4 d4 ud0 g1 g2 bfpdat5 11 d1 d5 ud1 d1 d5 d5 ud1 g0 g1 bfpdat6 13 d2 d6 ud2 d2 d6 d6 ud2 b2 b3 bfpdat7 15 d3 d7 ud3 d3 d7 d7 ud3 b1 b2 bfpdat8 17 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 b0 b1 bfpdat9 19 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 r0 bfpdat10 21 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 g0 bfpdat11 23 gpio4/ inverse video gpio4/ inverse video gpio4/ inverse video gpio4/ inverse video gpio4/ inverse video gpio4/ inverse video gpio4/ inverse video gpio4 b0 bfpshift 33 fpshift fpshift fpshift fpshift fpshift fpshift fpshift fpshift fpshift bfpshift2 35 fpshift2 bfpline 37 fpline fpline fpline fplin e fpline fpline fpline fpline fpline bfpframe 39 fpframe fpframe fpframe fpframe fpframe fpframe fpframe fpframe fpframe gnd 2-26 (even pins) gnd gnd gnd gnd gnd gnd gnd gnd gnd n / c 28 vlcd 30 lcd panel negative bias voltage (-24v to -14v) lcdvcc 32 +3.3v or +5v (selectable with jp4) +12v 34 +12v +12v +12v +12v +12v +12v +12v +12v +12v vddh 36 lcd panel positive bias voltage (+23v to +40v) bdrdy 38 mod mod mod mod mod mod drdy drdy blcdpwr 40 lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr
epson research and development page 11 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 4 cpu/bus interface connector pinouts table 4-1: cpu/bus connector (h1) pinout connector pin no. cpu/bus pin name comments 1 sd0 connected to db0 of the s1d13705 2 sd1 connected to db1 of the s1d13705 3 sd2 connected to db2 of the s1d13705 4 sd3 connected to db3 of the s1d13705 5 gnd ground 6 gnd ground 7 sd4 connected to db4 of the s1d13705 8 sd5 connected to db5 of the s1d13705 9 sd6 connected to db6 of the s1d13705 10 sd7 connected to db7 of the s1d13705 11 gnd ground 12 gnd ground 13 sd8 connected to db8 of the s1d13705 14 sd9 connected to db9 of the s1d13705 15 sd10 connected to db10 of the s1d13705 16 sd11 connected to db11 of the s1d13705 17 gnd ground 18 gnd ground 19 sd12 connected to db12 of the s1d13705 20 sd13 connected to db13 of the s1d13705 21 sd14 connected to db14 of the s1d13705 22 sd15 connected to db15 of the s1d13705 23 reset# connected to the reset# signal of the s1d13705 24 gnd ground 25 gnd ground 26 gnd ground 27 +12v 12 volt supply 28 +12v 12 volt supply 29 we0# connected to the we0# signal of the s1d13705 30 wait# connected to the wait# signal of the s1d13705 31 cs# connected to the cs# signal of the s1d13705 32 nc not connected 33 we1# connected to the we1# signal of the s1d13705 34 iovdd connected to the iovdd supply of the s1d13705
page 12 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 table 4-2: cpu/bus connector (h2) pinout connector pin no. cpu/bus pin name comments 1 sa0 connected to ab0 of the s1d13705 2 sa1 connected to ab1 of the s1d13705 3 sa2 connected to ab2 of the s1d13705 4 sa3 connected to ab3 of the s1d13705 5 sa4 connected to ab4 of the s1d13705 6 sa5 connected to ab5 of the s1d13705 7 sa6 connected to ab6 of the s1d13705 8 sa7 connected to ab7 of the s1d13705 9 gnd ground 10 gnd ground 11 sa8 connected to ab8 of the s1d13705 12 sa9 connected to ab9 of the s1d13705 13 sa10 connected to ab10 of the s1d13705 14 sa11 connected to ab11 of the s1d13705 15 sa12 connected to ab12 of the s1d13705 16 sa13 connected to ab13 of the s1d13705 17 gnd ground 18 gnd ground 19 sa14 connected to ab14 of the s1d13705 20 sa15 connected to ab14 of the s1d13705 21 sa16 connected to ab16 of the s1d13705 22 sa17 connected to sa17 of the isa bus connector 23 sa18 connected to sa18 of the isa bus connector 24 sa19 connected to sa19 of the isa bus connector 25 gnd ground 26 gnd ground 27 vcc 5 volt supply 28 vcc 5 volt supply 29 rd/wr# connected to the r/w# signal of the s1d13705 30 bs# connected to the bs# signal of the s1d13705 31 busclk connected to the bclk signal of the s1d13705 32 rd# connected to the rd# signal of the s1d13705 33 nc not connected 34 clki connected to the clki signal of the s1d13705
epson research and development page 13 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 5 host bus interface pin mapping table 5-1: host bus interface pin mapping s1d13705 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic bus #1 generic bus #2 ab[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] ab0 a0 a0lds#a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio bclk bclk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
page 14 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 6 technical description 6.1 embedded memory support the s1d13705 contains 80k bytes of embedded, 16-bit, sram used for the display buffer and a 32 byte internal register set. since the s1d13705 does not distinguish between memory and register accesses, both the 80k byte display buffer and the 32 byte register set must be memory mapped into the host?s memory space. when using the s5u13705b00c board on an isa bus system, the board can be configured to map the s1d13705 to one of two memory blocks. the sram start address is determined by a dip switch setting. see table 2-1: ?configu- ration dip switch settings,? on page 8. 1. when switch s1-5 is in the closed position, the s1d13705 is mapped into segments 0c0000h and 0d0000h. this memory space is in the first 1m byte of isa bus memory and should be used if these segments are not taken up by other devices such as network adapters, scsi cards, or other peripherals. note since vga and vga compatible video adapters use address 0c8000, these cards can- not be used while using the s5u13705b00c board at this memory address. a mono- chrome display adapter, a terminal, or a non-vga compatible display adapter must be used. 2. when switch s1-5 is in the open position, the s1d13705 is mapped into the upper megabyte of isa bus memory, starting address of f00000h. to use this memory on an isa bus system, the system bios has to be configured to set a memory ?hole? starting at this address. some systems allow the user to configure the size of this hole and the starting address of where it begins while others just allow a 1m byte hole at the top of the 16m byte memory space. this memory hole is configured by entering the system cmos setup utility. this memory space should be used if segments 0dh and 0eh are being used by other devices or if a vga display adapter is needed. starting at the sram start address, the board design decodes a 128k byte segment accom- modating both the 80k byte display buffer and the s1d13705 internal register set. the s1d13705 registers are mapped into the upper 32 bytes of the 128k byte segment (1ffe0h to 1ffffh). when using the s5u13705b00c board on a non-isa bus system, system or external decode logic must map the s1d13705 into an appropriate memory space.
epson research and development page 15 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 6.2 isa bus support the s5u13705b00c board has been designed to directly support the 16-bit isa bus environment and can be used in conjunction with either a vga or a monochrome display adapter card. there are 4 configuration inputs associated with the host interface (cnf[2:0] and bs#). refer to table 2-3: ?jumper settings,? on page 9 and table 5-1: ?host bus interface pin mapping,? on page 13 for complete details. 6.2.1 display adapter card support when using the s5u13705b00c in conjunction with another primary display adapter (vga or monochrome) the following applies: vga display adapter all vga display adapters can be used with the s5u13705b00c board if the s1d13705 is mapped to the upper 1m byte of isa bus memory, address f00000-f1ffff. if the s1d13705 is mapped to the address range 0c0000-0d0000, then no vga or vga compatible display adapters can be used with the s5u13705b00c board. see embedded memory support on page 14. monochrome display adapter the s5u13705b00c board can be used with monochrome display adapters at both memory addresses. 6.2.2 expanded memo ry manager support if a memory manager is being used for system memory, the address range selected for the sram start address must be excluded from use or memory conflicts will arise. 6.3 non-isa bus support the s5u13705b00c board is specifically designed to support the standard 16-bit isa bus. however, the s1d13705 directly supports many other host bus interfaces. header strips h1 and h2 are provided and contain all the necessary io pins to interface to these host buses. see cpu/bus interface connector pinouts on page 11; table 2-1: ?configuration dip switch settings,? on page 8; and table 2-3: ?jumper settings,? on page 9 for details.
page 16 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 when using the header strips to provide the bus interface observe the following:  all signals on the isa bus card edge must be isolated from the isa bus (do not plug the card into a computer). power must be provided through the headers.  u7, a pld of type 22v10-15, is used to provide the s1d13705 cs# (pin 74) and other decoding logic signals for isa bus mode. for non-isa applications, this functionality must be provided externally. remove the pal from its socket to eliminate conflicts driving s1d13705 control signals. refer to table 5-1: ?host bus interface pin mapping? for connection details. note when using a 3.3v host bus interface, io v dd must be set to 3.3v by setting jumper (jp1) to the 2-3 position. refer to table 2-3: ?jumper settings,? on page 9. 6.4 decoding logic all the required decode logic is provided through a pld of type 22v10-15 (u7, socketed). this pal contains the following equations. !cs = (address >= ^hc0000) & (address <= ^hdffff) & !addr & refresh & enab # (address1 >= ^hf00000) & (address1 <= ^hf1ffff) & addr & refresh & enab; !memcs16 = (address1 >= ^h0c0000) & (address1 <= ^h0dffff) & !addr & !cs # (address1 >= ^hf00000) & (address1 <= ^hf1ffff) & addr & !cs; !we0 = (!cs & !addr & !smemw) # (!cs & addr & !memw); !rd = (!cs & !addr & !smemr) # (!cs & addr & !memr); note addr = switch s1-5 (see table 2-1:, ?configuration dip switch settings,? on page 8). 6.5 clock input support the input clock (clki) frequency can be up to 50mhz for the s1d13705 if the internal clock divide-by-2 mode is set. if the clock divider is not used, the maximum clki frequency is 25mhz. there is no minimum input clock frequency. a 25.0mhz oscillator (u2, socketed) is provided as the input clock source. however, depending on the lcd resolution , desired frame rate, and power consumtion budget, a lower frequency clock may be required.
epson research and development page 17 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 6.6 lcd panel voltage setting the s5u13705b00c board supports both 3.3v and 5v lcd panels through the lcd connector j5. the voltage level is selected by setting jumper j4 to the appropriate position. refer to table 2-3: ?jumper settings,? on page 9 for setting this jumper. although not necessary for signal buffering, buffers have been implemented in the board design to provide flexibility in handling 3 and 5 volt panels. 6.7 monochrome lcd panel support the s1d13705 directly supports 4 and 8-bit, dual and single, monochrome passive lcd panels. all necessary signals are provided on the 40-pin ribbon cable header j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: ?lcd signal connector (j5) pinout,? on page 10 for specific connection information. 6.8 color passive lcd panel support the s1d13705 directly supports 4 and 8-bit, dual and single, color passive lcd panels. all the necessary signals are provided on the 40-pin ribbon cable header j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: ?lcd signal connector (j5) pinout,? on page 10 for specific connection information. 6.9 color tft/d-tfd lcd panel support the s1d13705 directly supports 9 and 12-bit active matrix color tft/d-tfd panels. all the necessary signals can also be found on the 40-pin lcd connector j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: ?lcd signal connector (j5) pinout,? on page 10 for connection infor- mation. 6.10 power save modes the s1d13705 supports hardware and software power save modes. these modes are controlled by the utility 13705pwr. the hardware power save mode needs to be enabled by 13705pwr and then activated by dip switch s1-6. see table 2-1: ?configuration dip switch settings,? on page 8 for details on setting this switch.
page 18 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 6.11 adjustable lcd panel negative power supply for those lcd panels requiring a negative power supply to provide between -23v and - 14v (i out =25ma) a power supply has been provided as an integral part of this design. the vlcd power supply can be adjusted by r21 to give an output voltage from -23v to -14v, and is enabled and disabled by the active high s1d13705 control signal lcdpwr, inverted externally. determine the panel?s specific power requirements and set the potentiometer accordingly before connecting the panel. 6.12 adjustable lcd panel positive power supply for those lcd panels requiring a positive power supply to provide between +23v and +40v (i out =45ma) a power supply has been provided as an integral part of this design. the vddh power supply can be adjusted by r15 to provide an output voltage from +23v to +40v and is enabled and disabled by the active high s1d13705 control signal lcdpwr, inverted externally. determine the panel?s specific power requirements and set the potentiometer accordingly before connecting the panel. 6.13 cpu/bus interface header strips all of the cpu/bus interface pins of the s1d13705 are connected to the header strips h1 and h2 for easy interface to a cpu/bus other than isa. refer to table 4-1: ?cpu/bus connector (h1) pinout,? on page 11 and table 4-2: ?cpu/bus connector (h2) pinout,? on page 12 for specific settings. note these headers only provide the cpu/bus interface signals from the s1d13705. when another host bus interface is selected by cnf[3:0] and bs#, appropriate external decod- ing logic must be used to access the s1d13705. refer to table 5-1: ?host bus inter- face pin mapping,? on page 13 for connection details.
epson research and development page 19 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 7 parts list item # qty/board designation part value description 1 15 c1-c11, c15-17,c24 0.1uf, 20%, 50v 0805 ceramic capacitor 2 3 c12-14 10uf, 10%, 25v tantalum capacitor size d 3 2 c18, c22 47uf, 10%, 16v tantalum capacitor size d 4 3 c19-c21 4.7uf, 10%, 50v tantalum capacitor size d 5 1 c23 56uf, 20%, 63v electrolytic, radial, low esr 6 2 h1,h2 con34a header 0.1? 17x2 header, pth 7 5 jp1-jp4, jp6 header 3 0.1? 1x3 header, pth 8 1 j1 at con-a isa bus gold fingers 9 1 j2 at con-b isa bus gold fingers 10 1 j3 at con-c isa bus gold fingers 11 1 j4 at con-d isa bus gold fingers 12 1 j5 con40a shrouded header 2x20, pth, center key 13 1 l1 1h mci-1812 inductor 14 2 l3, l4 ferrite bead philips bds3/3/8.9-4s2 15 1 q1 2n3906 pnp signal transistor, sot23 16 1 q2 2n3904 npn signal transistor, sot23 17 6 r1-r6 15k, 5% 0805 resistor 18 9 r7-r13, r17, r18 10k, 5% 0805 resistor 19 1 r14 475k, 1% 0805 resistor 20 1 r15 200k pot. 200k trim pot spectrol 63s204t607 (or equivalent) 21 1 r16 14k, 1% 0805 resistor 22 3 r19, r20, r22 100k, 5% 0805 resistor 23 1 r21 100k pot. 100k trim pot spectrol 63s104t607 (or equivalent) 24 1 s1 sw dip-6 6 position dip switch 25 1 u1 s1d13705f00a qfp14-80, 80 pin, smt 26 1 u2 25.0 mhz oscillator fox 25mhz oscillator or equiv., 14 pin dip socketed 27 3 u3-u5 74ahc244 so-22, ti74ahc244 28 1 u6 lt1117cm-3.3 linear technology 5v to 3.3v regulator, 800ma 29 1 u7 pld22v10-15 pld type 22v10-15, 20 pin dip, socketed 30 1 u8 74als125 so-14, 74als125 31 1 u9 74hct04 so-14, 74hct04 32 1 u10 rd-0412 xentek rd-0412, positive ps 33 1 u11 epn001 xentek epn001 negative ps
page 20 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 8 schematic diagrams figure 8-1: s1d13705b00c schematic diagram (1 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d by-pass capacitors (1 per power pin) 1 2 5.0v iovdd 2 3 3.3v iovdd 1.0 epson research & development, inc. s5u13705b00c isa-bus rev. 1. 0 evaluation board : 13705f00a chip b 14 monday, january 04, 1999 size document number rev date: sheet of fpdat2 sd2 fpdat4 sd11 sd4 sa3 sd13 sd5 fpdat[0..7] sd6 sa15 sd8 sa7 fpdat0 sd10 sd7 sd1 sa[0..19] sd[0..15] sd12 sd3 sa2 sa5 sd14 sa13 sa1 fpdat3 sa4 sa0 sd15 sa10 sa9 sa8 fpdat1 sd9 sd0 sa14 sa12 sa11 sa6 fpdat5 fpdat6 fpdat7 cnf2 cnf1 cnf2 cnf0 cnf3 cnf3 cnf[0..3] cnf1 cnf0 sa16 3.3v iovdd 3.3v iovdd iovdd iovdd iovdd vcc c1 0.1uf c6 0.1uf c7 0.1uf c5 0.1uf jp3 header 3 1 2 3 jp2 header 3 1 2 3 r4 15k r3 15k r2 15k r1 15k r5 15k c2 0.1uf c4 0.1uf c3 0.1uf jp1 header 3 1 2 3 r6 15k s1 sw dip-6 1 2 3 4 5 6 12 11 10 9 8 7 u1 s1d13705f00a ab0 70 ab1 69 ab2 68 ab3 67 ab4 66 ab5 65 ab6 64 ab7 63 ab8 62 ab9 59 ab10 58 ab11 57 ab12 56 ab13 55 ab14 54 ab15 53 fpdat0 37 fpdat1 36 fpdat2 35 fpdat3 34 fpdat5 32 fpdat6 31 fpdat7 30 cs# 74 lcdpwr 43 corevdd 61 vss 20 vss 40 vss 72 vss 60 vss 50 vss 27 vss 80 db0 19 db1 18 db2 17 db3 16 db4 15 db5 14 db6 13 db7 12 db8 11 db9 9 db10 8 db11 7 db12 6 db13 5 db14 4 db15 3 fpdat4 33 cnf0 49 cnf1 48 cnf2 47 cnf3 46 ab16 45 rd/wr# 79 we1# 78 we0# 77 rd# 76 bs# 75 reset# 73 clki 51 bclk 71 wait# 2 teste n 44 corevdd 1 corevdd 21 iovdd 10 corevdd 41 iovdd 52 iovdd 29 fpdat8/gpio1 26 fpdat9gpio2 25 fpdat10/gpio3 24 fpdat11/gpio4 23 fpframe 39 fpline 38 fpshift 28 drdy 42 gpio0 22 sd[0..15] lcdpwr drdy fpframe fpline fpshift fpdat[0..7] rd/wr# we1# we0# cs# busclk clki reset# rd# wait# bs# sa[0..19] fpdat8 fpdat9 fpdat10 fpdat11 cnf[0..3] suspend bs# rd/wr# cnf[0..3] suspend addr
epson research and development page 21 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 figure 8-2: s1d13705b00c schematic diagram (2 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d memcs16 1.0 epson research & development, inc. s5u13705b00c isa-bus rev. 1.0 evalua tion board : isa-bus and pal decode b 24 monday, january 04, 1999 size document number rev date: sheet of sd7 sd6 sd5 sd4 sd3 sd2 sd1 sd0 sd8 sd9 sd10 sd11 sd12 sd13 sd14 sd15 sd[0..15] sa[0..19] sa9 sa10 la21 sa14 sa17 sa8 sa15 sa0 sa4 sa13 la23 la[17..23] sa19 la19 la18 sa7 sa3 la20 sa16 sa6 sa2 sa11 sa12 la22 la17 sa1 sa18 sa5 la[17..23] sa[0..19] la23 la22 la21 la20 la19 la18 la17 sa19 sa18 sa17 sa16 iovdd vcc iovdd vcc +12v iovdd iovdd vcc vcc vcc iovdd vcc j1 at con-a /iochck 1 sd7 2 sd6 3 sd5 4 sd4 5 sd3 6 sd2 7 sd1 8 sd0 9 iochrdy 10 aen 11 sa19 12 sa18 13 sa17 14 sa16 15 sa15 16 sa14 17 sa13 18 sa12 19 sa11 20 sa10 21 sa9 22 sa8 23 sa7 24 sa6 25 sa5 26 sa4 27 sa3 28 sa2 29 sa1 30 sa0 31 j2 at con-b gnd 1 reset 2 +5v 3 irq9 4 -5v 5 drq2 6 -12v 7 ows 8 +12v 9 gnd 10 /smemw 11 /smemr 12 /iow 13 /ior 14 /dack3 15 drq3 16 /dack1 17 drq1 18 /refresh 19 clk 20 irq7 21 irq6 22 irq5 23 irq4 24 irq3 25 /dack2 26 t/c 27 bale 28 +5v 29 osc 30 gnd 31 j4 at con-d /memcs16 1 /iocs16 2 irq10 3 irq11 4 irq12 5 irq15 6 irq14 7 /dack0 8 drq0 9 /dack5 10 drq5 11 /dack6 12 drq6 13 /dack7 14 drq7 15 +5v 16 master 17 gnd 18 + c14 10uf/25v r7 10k + c13 10uf/25v j3 at con-c /sbhe 1 la23 2 la22 3 la21 4 la20 5 la19 6 la18 7 la17 8 /memr 9 /memw 10 sd8 11 sd9 12 sd10 13 sd11 14 sd12 15 sd13 16 sd14 17 sd15 18 r9 10k r10 10k r12 10k u8a 74ls125 2 3 14 1 7 c16 0.1uf r8 10k u7 tibpal22v10 clk/in 1 in 2 in 3 in 4 in 5 in 6 in 7 in 8 in 9 in 10 in 11 gnd 12 i/o 23 i/o 22 i/o 21 i/o 20 i/o 19 i/o 18 i/o 17 i/o 16 i/o 15 i/o 14 in 13 vcc 24 c15 0.1uf r11 10k r13 10k c17 0.1uf u9a 74hct04 1 2 14 7 r22 100k refresh# reset memcs16# we1# sd[0..15] sa[0..19] la[17..23] wait# busclk smemw# smemr# cs# reset# reset refresh# memcs16# memw# memr# la[17..23] sa[0..19] addr memr# memw# smemr# smemw# rd# we0#
page 22 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 figure 8-3: s1d13705b00c schematic diagram (3 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d selectable 3.3v / 5.0v color/mono lcd connector 1 2 5.0v lcd panels 2 3 3.3v lcd panels 1.0 epson research & development, inc. s5u13705b00c isa-bus rev. 1.0 evaluatio n card : lcd connector & headers b 34 monday, january 04, 1999 size document number rev date: sheet of fpdat[0..7] bfpdat0 bfpdat1 bfpdat2 bfpdat3 bfpdat4 bfpdat5 bfpdat6 bfpdat7 bfpdat8 bfpdat9 bfpdat10 bfpdat11 fpdat0 fpdat1 fpdat2 fpdat3 fpdat4 fpdat5 fpdat6 fpdat7 fpdat8 fpdat9 fpdat10 fpdat11 sa[0..19] sa1 sa3 sa9 sa11 sa13 sa15 sa17 sa19 sa0 sa2 sa4 sa6 sa8 sa10 sa12 sa14 sa16 sa18 sa5 sa7 sd14 sd9 sd13 sd12 sd7 sd11 sd10 sd8 sd5 sd3 sd6 sd4 sd1 sd[0..15] sd2 sd0 sd15 fpshift lcdvcc lcdvcc fpframe blcdpwr drdy bdrdy fpline bfpframe bfpshift bfpline lcdp +12v vddh vlcd vcc vcc vcc vcc +12v +12v 3.3v vcc iovdd j5 con40a 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 u3 74ahc244 1a1 2 1y1 18 1a2 4 1y2 16 1a3 6 1y3 14 1a4 8 1y4 12 2a1 11 2y1 9 2a2 13 2y2 7 2a3 15 2y3 5 2a4 17 2y4 3 1g 1 2g 19 vcc 20 gnd 10 u4 74ahc244 1a1 2 1y1 18 1a2 4 1y2 16 1a3 6 1y3 14 1a4 8 1y4 12 2a1 11 2y1 9 2a2 13 2y2 7 2a3 15 2y3 5 2a4 17 2y4 3 1g 1 2g 19 vcc 20 gnd 10 c8 0.1uf c9 0.1uf jp4 header 3 1 2 3 +c12 10uf/25v u6 lt1117cm-3.3 vin 3 adj 1 vout 2 c11 0.1uf h1 header 17x2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 h2 header 17x2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 c10 0.1uf u5 74ahc244 1a1 2 1y1 18 1a2 4 1y2 16 1a3 6 1y3 14 1a4 8 1y4 12 2a1 11 2y1 9 2a2 13 2y2 7 2a3 15 2y3 5 2a4 17 2y4 3 1g 1 2g 19 vcc 20 gnd 10 u2 25.0mhz nc 1 out 8 gnd 7 vcc 14 c24 0.1uf jp6 header 3 1 2 3 fpshift drdy fpline fpframe fpdat[0..7] fpdat8 fpdat9 fpdat10 fpdat11 bs# rd# wait# we0# cs# reset# we1# sa[0..19] sd[0..15] rd/wr# busclk clki clki lcdpwr lcdpwr#
epson research and development page 23 vancouver design center s5u13705b00c rev. 1.0 isa bus ev aluation board user manual s1d13705 issue date: 01/02/13 x27a-g-005-03 figure 8-4: s1d13705b00c schematic diagram (4 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d 1.0 epson research & development, inc. s5u13705b00c isa-bus rev. 1.0 eval uation board : lcd power supply b 44 monday, january 04, 1999 size document number rev date: sheet of lcdpwr# psvcc psvcc vcc psvcc psvcc iovdd vlcd vddh vcc vcc vcc vcc vcc + c21 4.7uf/50v r18 10k r19 100k r20 100k r14 475k r15 200k pot. 1 3 2 r16 14k + c19 4.7uf/50v + c20 4.7uf/50v + c22 47uf/16v + c23 56uf/35v low esr + c18 47uf/16v r17 10k r21 100k pot. 1 3 2 u10 rd-0412 vout_adj 1 dc_in 2 remote 3 gnd 4 gnd 5 gnd 6 gnd 7 gnd 8 nc 9 gnd 10 gnd 11 dc_out 12 u11 epn001 dc_out 1 dc_out 2 nc 3 gnd 4 gnd 5 vout_adj 6 nc 7 nc 8 nc 9 dc_in 11 dc_in 10 l1 1uh 2 5 l3 1 2 l4 1 2 u9b 74hct04 3 4 14 7 q2 mmbt3904 1 2 3 q1 mmbt3906 1 2 3 u9c 74hct04 5 6 14 7 u9d 74hct04 9 8 14 7 u9e 74hct04 11 10 14 7 u9f 74hct04 13 12 14 7 psgnd psgnd psgnd lcdpwr lcdpwr#
page 24 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 1.0 isa bus evaluation board user manual x27a-g-005-03 issue date: 01/02/13 this page left blank
s1d13705 embedded memory lcd controller s5u13705b00c rev. 2.0 evaluation board user manual document number: x27a-g-014-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 this page left blank
epson research and development page 3 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 installation and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 configuration dip switches . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 configuration jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 cpu interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 cpu interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2 cpu bus connector pin mapping . . . . . . . . . . . . . . . . . . . . . . 16 5 lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6 technical description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.1 pci bus support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.2 direct host bus interface support . . . . . . . . . . . . . . . . . . . . . . 19 6.3 s1d13705 embedded memory . . . . . . . . . . . . . . . . . . . . . . . . 19 6.4 adjustable lcd panel positive power supply (vddh) . . . . . . . . . . . . . . 19 6.5 adjustable lcd panel negative power supply (vlcd) . . . . . . . . . . . . . . 20 6.6 passive/active lcd panel support . . . . . . . . . . . . . . . . . . . . . . 20 6.7 power save modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.8 clock options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 9 parts list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 11 board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 12 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 12.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 32
page 4 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 this page left blank
epson research and development page 5 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 list of tables table 3-1: configuration dip switch settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 3-2: jumper summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4-1: cpu interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 4-2: cpu bus connector (h1) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 4-3: cpu bus connector (h2) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 5-1: lcd signal connector (j5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 list of figures figure 3-1: configuration dip switch (sw1) location . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 3-2: configuration jumper (jp1) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 3-3: configuration jumper (jp2) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 3-4: configuration jumper (jp3) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 3-5: configuration jumper (jp4) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-6: configuration jumper (jp5) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-7: configuration jumper (jp6) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 3-8: configuration jumper (jp7) location . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 10-1: s1d13705b00c schematics (1 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 figure 10-2: s1d13705b00c schematics (2 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 figure 10-3: s1d13705b00c schematics (3 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 figure 10-4: s1d13705b00c schematics (4 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 figure 10-5: s1d13705b00c schematics (5 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0
page 6 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 this page left blank
epson research and development page 7 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 1 introduction this manual describes the setup and operation of the s5u13705b00c rev. 2.0 evaluation board. the board is designed as an evaluation platform for the s1d13705 embedded memory lcd controller. this user manual is updated as appropriate. please check the epson research and devel- opment website at www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at documentation@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 2 features following are some features of the s5u13705b00c rev. 2.0 evaluation board:  80-pin tqfp s1d13705f00a embedded memory lcd controller with 80k bytes of embedded sram.  headers for connecting to various host bus interfaces.  configuration options.  adjustable positive lcd bias power supply from +23v to +40v.  adjustable negative lcd bias power supply from -23v to -14v.  4/8-bit 3.3v or 5v single monochrome or color passive lcd panel support.  9/12-bit 3.3v or 5v active matrix tft lcd panel support.  software and hardware initiated power save mode.  selectable clock source for bus clock and clki.  external oscillator for clki (up to 50mhz with internal clock divider or 25mhz with no internal clock divider) and busclk.
epson research and development page 9 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 3 installation and configuration the s5u13705b00c is designed to support as many platforms as possible. the s5u13705b00c incorporates a dip switch and seven jumpers which allow both evaluation board and s1d13705 lcd controller to be configured for a specified evaluation platform. 3.1 configuration dip switches the s1d13705 has configuration inputs (cnf[3:0]) and bs# input, which are read on the rising edge of reset#. in order to configure the s1d13705 for multiple host bus inter- faces a six-position dip switch (sw1) is required. the following figure shows the location of dip switch sw1 on the s5u13705b00c. figure 3-1: configuration dip switch (sw1) location dip switch - sw1
page 10 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 the s1d13705 has 4 configuration inputs (conf[3:0]) and bs# input, which are read on the rising edge of reset#. all s1d13705 configuration inputs and bs# input are fully configurable using a six position dip switch as described below and a jumper for bs#. note 1 the selection between generic #1 and generic #2 is made with jp3. table 3-1: configuration dip switch settings switch s1d13705 signal value on this pin at rising edge of reset# is used to configure: open (off/1) closed (on/0) sw1-[3:1] cnf[2:0] select host bus interface as follows: cnf2 cnf1 cnf0 host bus interface 000 sh-4 001 sh-3 010 reserved 0 1 1 mc68k #1 100 reserved 1 0 1 mc68k #2 110 reserved 1 1 1 generic #1/generic #2 1 note: the host bus interface is 16-bit. sw1-4 cnf3 big endian bus interface little endian bus interface sw1-5 not used not used sw1-6 gpio0 hardware suspend en able hardware suspend disable = required settings when used with pci bridge fpga
epson research and development page 11 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 3.2 configuration jumpers the s5u13705b00c has six jumper blocks which configure various setting on the board. the jumper positions for each function are shown below. jp1 - iovdd selection jp1 selects the iovdd voltage for s1d13705. when the jumper is in position 1-2, iovdd is 3.3v. this settings must be used for a 3.3v host cpu system. when the jumper is in position 2-3, iovdd is 5.0v. this setting must be used for a 5.0v host cpu system. note for pci host, jp1 can be set in either position. figure 3-2: configuration jumper (jp1) location table 3-2: jumper summary jumper function position 1-2 position 2-3 no jumper jp1 iovdd selection +3.3v iovdd +5.0v iovdd n/a jp2 bus clock selection external oscillator (u7) from host cpu n/a jp3 bs# signal selection pulled down to gnd (for generic #1 interface) pulled high to iovdd (for generic #2 interface) for sh-3, sh-4, mc68k #1 and mc68k #2 bus jp4 lcd panel voltage selection +3.3v lcdvcc +5.0v lcdvcc n/a jp5 pci bridge fpga disabled for non-pci host n/a enabled for pci host jp6 lcdpwr polarity active low active high n/a jp7 clki selection external oscillator (u2) bclk n/a = required settings when used with pci bridge fpga jp1 3.3 volt 5.0 volt iovdd iovdd
page 12 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 jp2 - bus clock selection jp2 selects the source for bclk input on s1d13705. when the jumper is in position 1-2, the bclk source is the external oscillator u7. this position must be used for pci-host. when the jumper is in position 2-3, the bclk must be provided by the host cpu. this setting may be used for non-pci host. figure 3-3: configuration jumper (jp2) location jp3 - bs# signal selection jp3 is used to pull up or down bs# input of s1d13705 for selection of generic #1 or generic #2 interface. when the jumper is in position 1-2, bs# is pulled down to select generic #1 interface. when the jumper is in position 2-3, bs# is pulled high to iovdd, to select generic #2 interface. for sh-3, sh-4, mc68k #1 and mc68k #2 buses, which use bs# line, the jumper should not be installed. figure 3-4: configuration jumper (jp3) location jp2 bclk external oscillator (u7) provided by host jp3 bs# bs# pulled low pulled high
epson research and development page 13 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 jp4 - lcd panel voltage selection jp4 selects voltage level to the lcd panel. when the jumper is in position 1-2, the voltage level is set to 3.3v. when the jumper is in position 2-3, the voltage level is set to 5.0v. figure 3-5: configuration jumper (jp4) location jp5 - pci bridge fpga jp5 is used to enable or disable the pci bridge fpga. when the jumper is in position 1-2, the pci bridge fpga is disabled. this position must be used for non-pci host. when the jumper is off, the pci bridge fpga is enabled. the jumper must not be present for pci host. figure 3-6: configuration jumper (jp5) location jp4 5.0 volt 3.3 volt lcd vdd lcd vdd jp5 fpga fpga disabled enabled
page 14 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 jp6 - lcdpwr polarity lcdpwr output from s1d13705 is only active high but some panels may require an active low signal. to provide both active high and active low signals, the output from s1d13705 is inverted and the selection is made by the setting of jp6 when the jumper is in position 1-2, lcdpwr signal to the panel is active low when the jumper is in position 2-3, lcdpwr signal to the panel is active high figure 3-7: configuration jumper (jp6) location jp7 - clki selection jp7 selects the source for clki input on s1d13705. when the jumper is in position 1-2, clki signal is provided by external oscillator u2 when the jumper is in position 2-3, clki signal is the same as bclk signal figure 3-8: configuration jumper (jp7) location jp6 lcdpwr lcdpwr active high active low jp7 clki external oscillator (u2) same as bclk
epson research and development page 15 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 4 cpu interface 4.1 cpu interface pin mapping note 1 if the target mc68k bus is 32-bit, then these signals should be connected to d[31:16]. table 4-1: cpu interface pin mapping s1d13705 pin name generic #1 generic #2 hitachi sh-3 hitachi sh-4 motorola mc68k #1 motorola mc68k #2 ab[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] a[16:1] ab0 a0 a0 a0 a0 lds# a0 db[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] 1 cs# external decode csn# csn# external decode bclk bclk bclk ckio ckio clk clk bs# connect to vss connect to iovdd bs# bs# as# as# rd/wr# rd1# connect to iovdd rd/wr# rd/wr# r/w# r/w# rd# rd0# rd# rd# rd# connect to iovdd siz1 we0# we0# we# we0# we0# connect to iovdd siz0 we1# we1# bhe# we1# we1# uds# ds# wait# wait# wait# wait# rdy# dtack# dsack1# reset# reset# reset# reset# reset# reset# reset#
page 16 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 4.2 cpu bus connector pin mapping table 4-2: cpu bus connector (h1) pinout connector pin no. comments 1 connected to db0 of the s1d13705 2 connected to db1 of the s1d13705 3 connected to db2 of the s1d13705 4 connected to db3 of the s1d13705 5 ground 6 ground 7 connected to db4 of the s1d13705 8 connected to db5 of the s1d13705 9 connected to db6 of the s1d13705 10 connected to db7 of the s1d13705 11 ground 12 ground 13 connected to db8 of the s1d13705 14 connected to db9 of the s1d13705 15 connected to db10 of the s1d13705 16 connected to db11 of the s1d13705 17 ground 18 ground 19 connected to db12 of the s1d13705 20 connected to db13 of the s1d13705 21 connected to db14 of the s1d13705 22 connected to db15 of the s1d13705 23 connected to reset# of the s1d13705 24 ground 25 ground 26 ground 27 +12 volt supply 28 +12 volt supply 29 connected to we0# of the s1d13705 30 connected to wait# of the s1d13705 31 connected to cs# of the s1d13705 32 not connected 33 connected to we1# of the s1d13705 34 connected to iovdd
epson research and development page 17 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 table 4-3: cpu bus connector (h2) pinout connector pin no. comments 1 connected to ab0 of the s1d13705 2 connected to ab1 of the s1d13705 3 connected to ab2 of the s1d13705 4 connected to ab3 of the s1d13705 5 connected to ab4 of the s1d13705 6 connected to ab5 of the s1d13705 7 connected to ab6 of the s1d13705 8 connected to ab7 of the s1d13705 9 ground 10 ground 11 connected to ab8 of the s1d13705 12 connected to ab9 of the s1d13705 13 connected to ab10 of the s1d13705 14 connected to ab11 of the s1d13705 15 connected to ab12 of the s1d13705 16 connected to ab13 of the s1d13705 17 ground 18 ground 19 connected to ab14 of the s1d13705 20 connected to ab15 of the s1d13705 21 connected to ab16 of the s1d13705 22 not connected 23 not connected 24 not connected 25 ground 26 ground 27 +5 volt supply 28 +5 volt supply 29 connected to rd/wr# of the s1d13705 30 connected to bs# of the s1d13705 31 connected to bclk of the s1d13705 32 connected to rd# of the s1d13705 33 not connected 34 not connected
page 18 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 5 lcd interface pin mapping note 1 these pin mappings use signal names commonly used for each panel type, however signal names may differ between panel manufacturers. the values shown in brackets represent the color components as mapped to the corresponding fpdatxx signals at the first valid edge of fpshift. for further fpdatxx to lcd interface mapping, see s1d13705 hardware functional specification , document number x27a-a-001-xx. 2 lcdpwr on j5 can be inverted by setting jp6 to 1-2. table 5-1: lcd signal connector (j5) pin name connector pin no. monochrome passive color passive panel color tft panel single dual single dual format 1 format 2 4-bit 8-bit 8-bit 4-bit 8-bit 8-bit 8-bit 9-bit 12-bit bfpdat0 1 driven 0 d0 ld0 driven 0 d0 (b5) 1 d0 (g3) 1 ld0 (lr2) 1 r2 r3 bfpdat1 3 driven 0 d1 ld1 driven 0 d1 (r5) 1 d1 (r3) 1 ld1 (lb1) 1 r1 r2 bfpdat2 5 driven 0 d2 ld2 driven 0 d2 (g4) 1 d2 (b2) 1 ld2 (lg1) 1 r0 r1 bfpdat3 7 driven 0 d3 ld3 driven 0 d3 (b3) 1 d3 (g2) 1 ld3 (lr1) 1 g2 g3 bfpdat4 9 d0 d4 ud0 d0 (r2) 1 d4 (r3) 1 d4 (r2) 1 ud0 (ur2) 1 g1 g2 bfpdat5 11 d1 d5 ud1 d1 (b1) 1 d5 (g2) 1 d5 (b1) 1 ud1 (ub1) 1 g0 g1 bfpdat6 13 d2 d6 ud2 d2 (g1) 1 d6 (b1) 1 d6 (g1) 1 ud2 (ug1) 1 b2 b3 bfpdat7 15 d3 d7 ud3 d3 (r1) 1 d7 (r1) 1 d7 (r1) 1 ud3 (ur1) 1 b1 b2 bfpdat8 17 gpio1 b0 b1 bfpdat9 19 gpio2 r0 bfpdat10 21 gpio3 g0 bfpdat11 23 gpio4 b0 bfpshift 33 fpshift bdrdy 35 & 38 mod fpshift2 mod drdy bfpline 37 fpline bfpframe 39 fpframe gnd 2-26 (even pins) gnd vlcd 30 adjustable -24v to -14v negative lcd bias lcdvcc 32 lcdvcc (3.3v / 5.0v) +12v 34 +12v vddh 36 adjustable +23v to +40v positive lcd bias blcdpwr 40 lcdpwr 2 (for controlling on-board lcd bias power supply on/off)
epson research and development page 19 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 6 technical description 6.1 pci bus support the s1d13705 does not have on-chip pci bus interface support. the s1d13705b00c uses the pci bridge fpga to support the pci bus. when using the pci bridge fpga, a windows device driver is required, see section 7, ?software? on page 22 for further infor- mation on available software and drivers. 6.2 direct host bus interface support the s5u13705b00c is specifically designed to work using the pci bridge fpga in a standard pci bus environment. however, the s1d13705 directly supports many other host bus interfaces. connectors h1 and h2 provide the necessary io pins to interface to these host buses. for further information on the host bus interfaces supported, see ?cpu interface? on page 15 . note the pci bridge fpga must be disabled using jp5 in order for direct host bus interface to operate properly. 6.3 s1d13705 embedded memory the s1d13705 has 80k bytes of embedded sram. the 80k byte display buffer address space is directly and contiguously available through the 17-bit address bus. the s1d13705 registers are located in the upper 32 bytes of the 128k byte address range of s1d13705. 6.4 adjustable lcd panel positive power supply (vddh) for those lcd panels requiring a positive power supply to provide between +23v and +40v (iout = 45ma) a power supply has been provided as an integral part of this design. the vddh power supply can be adjusted by r15 to provide an output voltage from +23v to +40v and is enabled and disabled by the active high lcdpwr control signal of s1d13705 and inverted externally. determine the panel?s specific power requirements and set the potentiometer accordingly before connecting the panel.
page 20 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 6.5 adjustable lcd panel negative power supply (vlcd) for those lcd panels requiring a negative power supply to provide between -23v and - 14v (iout = 25ma) a power supply has been provided as an integral part of this design. the vlcd power supply can be adjusted by r21 to give an output voltage from -23v to -14v and is enabled and disabled by the active high lcdpwr control signal of s1d13705 and inverted externally. determine the panel?s specific power requirements and set the potentiometer accordingly before connecting the panel. 6.6 passive/active lcd panel support the s1d13705 directly supports:  4/8-bit, single and dual, monochrome passive panels.  4/8-bit, single and dual, color passive panels.  9/12-bit, tft active matrix panels. all the necessary signals are provided on the 40-pin lcd connector j5. for connection information, refer to table 5-1: ?lcd signal connector (j5)? on page 18. the buffered lcd connector (j5) provides the same lcd panel signals as those directly from s1d13705, but with voltage-adapting buffers selectable to 3.3v or 5.0v. pin 32 on this connector provides a voltage level of 3.3v or 5.0v to the lcd panel logic (see ?jp6 - lcdpwr polarity? on page 14 for information on setting the panel voltage). 6.7 power save modes the s1d13705 supports one hardware and one software power save mode. the hardware power save mode needs to be enabled by setting reg[02h] bit1 to 1 and then can be activated by dip switch sw1-6. see table 3-1: ?configuration dip switch settings? on page 10 .
epson research and development page 21 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 6.8 clock options the input clock (clki) frequency can be up to 50mhz for the s1d13705 if the internal divide-by-2 mode is set. if the clock divider is not used, the maximum clki frequency is 25mhz. there is no minimum input clock frequency. a 6.0mhz oscillator (u2, socketed) is provided as the input clock source. however, depending on the lcd resolution, desired frame rate and power consumption budget, another clock frequency may be required. a jumper, jp7 is provided to allow clki input to be the same as bclk input, for systems in which is desired to use only one clock signal for both bclk and clki. the bus clock (bclk) is selectable and can be provided by a 50mhz oscillator (u7, socketed) or the host cpu (for non-pci host).
page 22 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 7 software this evaluation board, when used with the pci bridge fpga adapter, requires drivers to work in the 32-bit windows environment. see the s1d13xxx 32-bit windows device driver installation guide , document number x00a-e-003-xx for more information. test utilities and display drivers are also available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and drivers are available from your sales support contact or on the internet at www.erd.epson.com.
epson research and development page 23 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 8 references 8.1 documents  epson research and development, inc., s1d13705 hardware functional specification , document number x27a-a-001-xx .  epson research and development, inc., s1d13705 programming notes and examples , document number x27a-g-002-xx .  epson research and development, inc., s1d13xxx 32-bit windows device driver installation guide , document number x00a-e-003-xx . 8.2 document sources  epson research and development website: http://www.erd.epson.com.
page 24 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 9 parts list item quantity reference part description 115 c1-c11, c16, c17, c24, c25 0.1uf, 20%, 50v 1206 pckg., ceramic capacitor 2 1 c12 10uf, 10%, 25v tantalum capacitor size d 3 2 c22,c18 47uf, 10%, 16v tantalum capacitor size d 4 3 c19,c20,c21 4.7uf, 10%, 50v tantalum capacitor size d 5 1 c23 56uf, 20%, 35v, low esr electrolytic, radial, low esr 6 2 c36,c33 33uf, 10%, 20v tantalum capacitor size d 7 3 c34,c35,c37 68uf, 10%, 10v tantalum capacitor size d 8 9 c38-c46 0.22uf, 5%, 50v x7r, 1206 pckg 9 2 h2,h1 header 17x2 0.1", 17x2, unshrouded header 10 6 jp1,jp2,jp3,jp4,jp6,j p7 header 3 0.1", 3x1, unshrouded header 11 1 jp5 header 2 0.1", 2x1, unshrouded header 12 1 j5 con40a 0.1", 20x2, 0.025" sq. shrouded header, center key, t/h 13 1 l1 1uh rcd mci-1812 inductor 1uh mt or msi-1812 1uh mt 14 3 l2,l3,l4 ferrite bead philips bds3/3/8.9-4s2 15 1 q1 mmbt3906 generic mmbt3906 16 1 q2 mmbt3904 generic mmbt3904 17 13 r1-r6, r10, r11, r33, r36-r39 15k, 5% 1206 resistor 18 1 r8 0r 1206 resistor, 0 ohms 19 1 r14 475k, 1% 1206 resistor 20 1 r15 200k pot. 200k trim pot spectrol 63s204t607 or equiv. 21 1 r16 14k, 1% 1206 resistor 22 2 r18, r17 10k, 5% 1206 resistor 23 3 r19, r20, r32 100k, 5% 1206 resistor 24 1 r21 100k pot. 100k trim pot spectrol 63s104t607 or equiv. 25 3 r34, r35, r40 1k, 5% 1206 resistor 26 1 sw1 sw dip-6 6 position dip switch 27 1 u1 s1d13705 28 1 u2 14-pin dip socket machined socket, 14-pin 29 1 u2 6mhz fox 6.0mhz oscillator or equiv., 14-pin dip pckg, socketed 30 3 u3,u4,u5 74ahc244 so-22, ti74ahc244 or equivalent 31 1 u6 lt1117cm-3.3 linear technology 5v to 3.3v regulator, 800ma or equiv.
epson research and development page 25 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 32 1 u7 14-pin dip socket machined socket, 14-pin 33 1 u7 50mhz fox 50.0mhz oscillator or equiv., 14- pin dip pckg, socketed 34 1 u8 74ahc04/so so-14, 74ahc04 35 1 u9 74hct86/so so-14, 74hct86 36 1 u10 rd-0412 xentek rd-0412, positive power supply 37 1 u11 epn001 xentek epn001, negative power supply 38 1 u14 epf6016tc144-2 altera epf6016tc144-2 39 1 u15 8-pin dip socket machined socket, 8-pin 40 1 u15 epc1441pc8 altera epc1441pc8, socketed 41 6 jp1,jp2,jp3,jp4,jp6,j p7 jumper shunt for 0.1" header 42 1 bracket computer bracket, blank - pci, keystone - cat. no. 9203 43 2 scew pan head, #4-40 x 1/4" item quantity reference part description
page 26 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 10 schematics figure 10-1: s1d13705b00c schematics (1 of 5) 5 5 4 4 3 3 2 2 1 1 d d c c b b a a by-pass capacitors (1 per power pin) not populated not populated 2.0 s5u13705b00c - pci bus: 13705f0a chip 15 tuesday, october 02, 2001 title size document number rev date: sheet of cnf4 cnf4 bs# ab15 cnf3 db14 db9 db7 db4 cnf2 ab10 ab5 ab16 bs# fpdat4 fpdat3 ab11 ab0 cnf0 db5 fpdat2 ab6 db13 ab7 ab2 db[15:0] db10 db2 ab9 db8 db6 db0 fpdat6 fpdat1 ab12 suspend db3 fpdat5 db12 db1 fpdat7 cnf1 db15 ab8 ab3 ab[16:0] db11 ab13 ab4 ab14 ab1 fpdat[7:0] fpdat0 suspend cnf3 cnf2 cnf0 cnf1 wait# 4,5 fpdat[7:0] 2 fpdat8 2 fpdat10 2 fpdat9 2 fpdat11 2 lcdpwr 2,3 fpframe 2 fpline 2 fpshift 2 drdy 2 db[15:0] 4,5 ab[16:0] 4,5 rd/wr# 4,5 we1# 4,5 we0# 4,5 rd# 4,5 bs# 4,5 reset# 4,5 cs# 4,5 cnf4 3 bclk 4 busclk 5 3.3v iovdd +5v +5v iovdd iovdd iovdd iovdd iovdd iovdd iovdd iovdd +5v 3.3v iovdd r4 15k c6 0.1uf u8c 74ahc04/so 5 6 14 7 u8d 74ahc04/so 9 8 14 7 u1 sed1375f0a 70 69 68 67 66 65 64 63 62 59 58 57 56 55 54 53 37 36 35 34 32 31 30 74 43 61 20 40 72 60 50 27 80 19 18 17 16 15 14 13 12 11 9 8 7 6 5 4 3 33 49 48 47 46 45 79 78 77 76 75 73 51 71 2 44 1 21 10 41 52 29 26 25 24 23 39 38 28 42 22 ab0 ab1 ab2 ab3 ab4 ab5 ab6 ab7 ab8 ab9 ab10 ab11 ab12 ab13 ab14 ab15 fpdat0 fpdat1 fpdat2 fpdat3 fpdat5 fpdat6 fpdat7 cs# lcdpwr corevdd vss vss vss vss vss vss vss db0 db1 db2 db3 db4 db5 db6 db7 db8 db9 db10 db11 db12 db13 db14 db15 fpdat4 cnf0 cnf1 cnf2 cnf3 ab16 rd/wr# we1# we0# rd# bs# reset# clki bclk wait# testen corevdd corevdd iovdd corevdd iovdd iovdd fpdat8/gpio1 fpdat9gpio2 fpdat10/gpio3 fpdat11/gpio4 fpframe fpline fpshift drdy gpio0 c17 0.1uf r9 0r sw1 sw dip-6 1 2 3 4 5 6 12 11 10 9 8 7 r7 0r c1 0.1uf jp2 header 3 1 2 3 r8 0r r5 15k r10 15k r11 15k c2 0.1uf c24 0.1uf u8f 74ahc04/so 13 12 14 7 jp3 header 3 1 2 3 u8a 74ahc04/so 1 2 14 7 c5 0.1uf jp7 header 3 1 2 3 c7 0.1uf r6 15k c3 0.1uf jp1 header 3 1 2 3 r2 15k u8e 74ahc04/so 11 10 14 7 u7 50mhz 1 8 7 14 nc out gnd vcc r3 15k c4 0.1uf c25 0.1uf u2 6mhz 1 8 7 14 nc out gnd vcc u8b 74ahc04/so 3 4 14 7 r1 15k
epson research and development page 27 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 figure 10-2: s1d13705b00c schematics (2 of 5) 5 5 4 4 3 3 2 2 1 1 d d c c b b a a not populated 1 2 5.0v lcd panels 2 3 3.3v lcd panels selectable 3.3v / 5.0v color/mono lcd connector 2.0 s5u13705b00c - pci bus: lcd connector b 25 wednesday, october 10, 2001 title size document number rev date: sheet of fpdat1 bfpdat9 bfpdat8 bfpdat4 bfpframe lcdvcc bfpdat7 bfpdat2 bfpline bfpdat5 fpdat3 bfpdat11 bfpdat10 bfpdat3 fpdat0 blcdpwr fpdat7 bfpdat1 fpdat2 fpdat5 bfpshift fpdat[7:0] fpdat4 bfpdat0 bdrdy lcdvcc fpdat6 bfpdat6 lcdp fpdat[7:0] 1 lcdpwr 1,3 nlcdpwr 3 fpdat8 1 fpdat9 1 fpdat10 1 fpdat11 1 fpshift 1 drdy 1 fpline 1 fpframe 1 vddh vlcd +5v +5v 3.3v +12v jp6 header 3 1 2 3 + c12 10uf/25v r41 0r u5 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd j5 con40a 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 u3 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd u4 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd u6 lt1117cm-3.3 3 1 2 vin a d j vout c11 0.1uf c8 0.1uf c9 0.1uf c10 0.1uf jp4 header 3 1 2 3
page 28 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 figure 10-3: s1d13705b00c schematics (3 of 5) 5 5 4 4 3 3 2 2 1 1 d d c c b b a a 2.0 s5u13705b00c -pci bus: lcd power supplies b 35 tuesday, october 02, 2001 title size document number rev date: sheet of nlcdpwr nlcdpwr 2 cnf4 1 lcdpwr 1,2 psvcc iovdd vlcd +5v psvcc psvcc psiovdd vddh psiovdd psvcc +5v +5v +5v +5v u9c 74hct86/so 9 10 8 1 4 7 c16 0.1uf + c21 4.7uf/50v r18 10k r19 100k r20 100k q2 mmbt3904 1 2 3 r14 475k r15 200k pot. 1 3 2 r16 14k + c19 4.7uf/50v + c20 4.7uf/50v + c22 47uf/16v + c23 56uf/35v low esr + c18 47uf/16v r17 10k u9b 74hct86/so 4 5 6 1 4 7 r21 100k pot. 1 3 2 u10 rd-0412 1 2 3 4 5 6 7 8 9 1 0 1 1 12 vout_adj dc_in re mote gnd gnd gnd gnd gnd n c gnd gnd d c _ou t u11 epn001 1 2 3 4 5 6 7 8 9 1 1 10 d c_ out dc_out n c gn d gn d v o ut_adj nc n c n c dc _i n dc _i n l1 1uh 2 5 q1 mmbt3906 1 2 3 l3 1 2 l4 1 2 u9d 74hct86/so 12 13 11 1 4 7 l2 1 2 u9a 74hct86/so 1 2 3 1 4 7
epson research and development page 29 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 figure 10-4: s1d13705b00c schematics (4 of 5) 5 5 4 4 3 3 2 2 1 1 d d c c b b a a place close to pcib pin 61 & 62 place close to pcib pin 5 & 6 place close to pcia pin 2 2.0 s5u13705b00c - pci bus: host bus connectors b 45 tuesday, october 02, 2001 title size document number rev date: sheet of ad16 ab3 ab2 db14 db12 ad2 ab1 ad1 ad27 ad6 ab9 ab15 ad14 ad15 ab[16:0] db15 ab16 ab10 ad12 ad26 db9 ad25 db11 ad[31:0] db4 db5 ad29 ad13 ad8 ab7 db1 ad7 ad21 ab4 db13 ab0 db8 ad5 ad28 db7 ab11 ad30 ab12 ad19 ab13 ad22 ad10 ab14 db10 ad0 ab6 ab5 ad18 ad4 db0 ad31 db3 db[15:0] ad3 ad11 ab8 ad9 db2 ad17 ad20 ad24 db6 ad23 idsel 5 clk 5 reset# 1,5 perr# 5 rst# 5 ad[31:0] 5 rd# 1,5 we0# 1,5 trdy# 5 serr# 5 irdy# 5 frame# 5 stop# 5 ab[16:0] 1,5 c/be2# 5 c/be3# 5 devsel# 5 bs# 1,5 c/be1# 5 bclk 1 rd/wr# 1,5 wait# 1,5 cs# 1,5 c/be0# 5 we1# 1,5 par 5 db[15:0] 1,5 +5v +5v +5v +5v +12v +12v +12v +5v +5v +12v +12v +5v iovdd + c36 33u 20v pcib1 pci-b 1 2 3 4 5 6 7 8 9 10 11 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 52 53 54 55 56 57 58 59 60 61 62 -12v tck gnd tdo +5v +5v intb# intd# prsnt#1 reserved prsnt#2 reserved gnd clk gnd req# +vi/o ad31 ad29 gnd ad27 ad25 +3.3v c/be3# ad23 gnd ad21 ad19 +3.3v ad17 c/be2# gnd irdy# +3.3v devsel# gnd lock# perr# +3.3v serr# 3.3v c/be1# ad14 gnd ad12 ad10 gnd ad8 ad7 +3.3v ad5 ad3 gnd ad1 +vi/o ack64# +5v +5v pcia1 pci-a 1 2 3 4 5 6 7 8 9 10 11 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 52 53 54 55 56 57 58 59 60 61 62 trst# +12v tms tdi +5v inta# intc# +5v reserved +vi/o reserved reserved rst# +vi/o gnt# gnd reserved ad30 +3.3v ad28 ad26 gnd ad24 idsel +3.3v ad22 ad20 gnd ad18 ad16 +3.3v frame# gnd trdy# gnd stop# +3.3v sdone sbo# gnd par ad15 +3.3v ad13 ad11 gnd ad9 c/be0# +3.3v ad6 ad4 gnd ad2 ad0 +vi/o req64# +5v +5v + c33 33u 20v + c34 68u 10v + c35 68u 10v h2 header 17x2 12 34 56 78 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 h1 header 17x2 12 34 56 78 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 + c37 68u 10v
page 30 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 figure 10-5: s1d13705b00c schematics (5 of 5) 5 5 4 4 3 3 2 2 1 1 d d c c b b a a not populated fpga configuration eprom place jumper to disable fpga 2.0 s5u13705b00c - pci bus: fpga--6016 b 55 tuesday, october 02, 2001 title size document number rev date: sheet of ab[16:0] ab14 nstatus a d 12 ab10 a d 8 ad31 a d 21 a d 25 dclk db4 conf_done ab16 ab15 db6 a d 15 db12 ad28 ad26 db14 d c l k a d 18 db8 ab13 ab11 db5 a d 19 data ab5 db2 ad0 db1 a d 24 ab0 n s t at u s ad5 a d 22 ad30 ad3 db7 db11 ab9 ab4 a d 11 ab7 db13 db3 a d 14 ad17 ad27 ad[31:0] a d 9 db15 ad1 a d 16 ab6 ab1 ab2 conf_done ad7 ad6 ab8 ad29 a d 23 ad10 db[15:0] db9 ab12 ad2 d ata db10 db0 ad4 ab3 ad13 a d 2 0 frame# 4 stop# 4 we1# 1,4 we0# 1,4 clk 4 ad[31:0] 4 serr# 4 c/be1# 4 trdy# 4 rd/wr# 1,4 cs# 1,4 c/be2# 4 wait# 1,4 c/be3# 4 reset# 1,4 busclk 1 rd# 1,4 devsel# 4 c/be0# 4 db[15:0] 1,4 par 4 perr# 4 irdy# 4 idsel 4 bs# 1,4 rst# 4 ab[16:0] 1,4 +5v iovdd +5v +5v iovdd +5v +5v +5v iovdd +5v +5v +5v iovdd iovdd +5v +5v iovdd +5v +5v +5v +5v u14 epf6016tc144-2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 7 0 7 1 7 2 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 1 0 9 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 2 0 1 2 1 1 2 2 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 3 0 1 3 1 1 3 2 1 3 3 13 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 4 0 1 4 1 1 4 2 1 4 3 1 4 4 io1 io2 io3 nce gnd vccint vccio io8 io9 io10 io11 io12 io13 io14 io15 io16 i17 gnd vccio i20 io21 io22 io23 io24 io25 io26 io27 io28 io29 gnd vccint vccio msel io34 io35 io36 io37 io38 io39 io40 io41 io42 io43 io44 io45 io46 io47 io48 io49 io50 io51 io52 n c on fig gnd v cc io n s ta tu s io57 io58 io59 io60 io61 io62 io63 io64 io65 io66 io67 io68 io69 io70 io71 io72 io73 io74 io75 gnd vccint vccio io79 io80 io81 io82 io83 io84 io85 io86 io87 io88 i89 gnd vccio i92 io93 io94 io95 io96 io97 io98 io99 io100 io101 gnd vccint vccio conf_done io106 io107 io108 i o 109 i o 110 i o 111 i o 112 i o 113 io114 i o 115 i o 116 i o 117 i o 118 i o 119 io120 io121 i o 122 i o 123 i o 124 d a t a gnd vc ci o dc lk i o 129 i o 130 i o 131 io132 i o 133 i o 134 i o 135 i o 136 i o 137 i o 138 i o 139 i o 140 i o 141 i o 142 i o 143 io14 4 c38 0.22u r36 15k r37 15k r38 15k r39 15k r33 15k u15 epc1441pc8 1 2 3 4 5 6 7 8 data dclk oe ncs gnd ncasc vcc vcc r34 1k r35 1k r40 1k s1 sw dip-4 1 2 3 4 8 7 6 5 c40 0.22u c39 0.22u c44 0.22u c42 0.22u c41 0.22u c43 0.22u c46 0.22u jp5 header 2 1 2 c45 0.22u r32 100k
epson research and development page 31 vancouver design center s5u13705b00c rev. 2.0 evaluation board user manual s1d13705 issue date: 2002/09/16 x27a-g-014-02 11 board layout
page 32 epson research and development vancouver design center s1d13705 s5u13705b00c rev. 2.0 evaluation board user manual x27a-g-014-02 issue date: 2002/09/16 12 technical support 12.1 epson lcd controllers (s1d13705) japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp/ hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 http://www.epson.com.hk/ taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan tel: 02-2717-7360 fax: 02-2712-9164 http://www.epson.com.tw/ singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 http://www.epson.com.sg/ europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 http://www.epson-electronics.de/ north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com/
s1d13705 embedded memory lcd controller windows? ce 3.x display drivers document number: x27a-e-006-01 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. mi crosoft and windows are register ed trademarks of microsoft corpor ation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 this page left blank
epson research and development page 3 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 windows? ce 3.x display drivers the windows ce 3.x display driver is designed to support the s1d13705 embedded memory lcd controller running the microsoft windows ce operating system, version 3.0. the driver is capable of: 4 and 8 bit-per-pixel landscape modes (no rotation), and 4 and 8 bit-per-pixel swivelview? 270 degree mode. this document and the source code for the windows ce drivers are updated as appropriate. before beginning any development, please check the epson electronics america website at www.eea.epson.com or the epson research and development website at www.erd.epson.com for the latest revisions. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 4 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 example driver builds the following sections describe how to build the windows ce display driver for: 1. windows ce platform builder 3.00 using the gui interface. 2. windows ce platform builder 3.00 using the command-line interface. in all examples ?x:? refers to the drive letter where platform builder is installed. build for cepc (x86) on windows ce platform builder 3.00 using the gui interface 1. install microsoft windows 2000 professional, or windows nt workstation version 4.0 with service pack 5 or later. 2. install windows ce platform builder 3.00. 3. start platform builder by double-clicking on the microsoft windows ce platform builder icon. 4. create a new project. a. select file | new. b. in the dialog box, select the platforms tab. c. in the platforms dialog box, select ?wce platform?, set a location for the project (such as x:\myproject), set the platform name (such as myplatform), and set the processors to ?win32 (wce x86)?. d. click the ok button. e. in the dialog box ?wce platform - step 1 of 2?, select cepc. f. click the next button. g. in the dialog box ?wce platform - step 2 of 2?, select minimal os (minkern). h. click the finish button. i. in the dialog box ?new platform information?, click the ok button. 5. set the active configuration to ?win32 (wce x86) release?. a. from the build menu, select ?set active configuration?. b. select ?myplatform - win32 (wce x86) release?. c. click the ok button. 6. add the environment variable cepc_ddi_s1d13x0x. a. from the platform menu, select ?settings?. b. select the ?environment? tab. c. in the variable box, type ?cepc_ddi_s1d13x0x?.
epson research and development page 5 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 d. in the value box, type ?1?. e. click the set button. f. click the ok button. 7. create a new directory s1d13705, under x:\wince300\platform\cepc\drivers\display, and copy the s1d13705 driver source code into this new directory. 8. add the s1d13705 driver component. a. from the platform menu, select ?insert | user component?. b. set ?files of type:? to ?all files (*.*)?. c. select the file x:\wince300\platform\cepc\drivers\display\s1d13705\sources. d. in the ?user component target file? dialog box, select browse and then select the path and the file name of ?sources?. 9. delete the component ?ddi_flat?. a. in the workspace window, select the componentview tab. b. show the tree for myplatform components by clicking on the ?+? sign at the root of the tree. c. right-click on the ddi_flat component. d. select ?delete?. e. from the file menu, select ?save workspace?. 10. from the workspace window, click on parameterview tab. show the tree for my- platform parameters by clicking on the ?+? sign at the root of the tree. expand the the wince300 tree and then click on ?hardware specific files? and then double click on ?platform.bib?. edit the file the platform.bib file and make the fol- lowing two changes: a. insert the following text after the line ?if odo_nodisplay !?: if cepc_ddi_s1d13x0x ddi.dll $(_flatreleasedir)\s1d13x0x.dll nk sh endif b. find the section shown below, and insert the lines as marked: if cepc_ddi_flat ! if cepc_ddi_s1d13x0x! ; insert this line if cepc_ddi_s3virge ! if cepc_ddi_ct655x ! if cepc_ddi_vga8bpp ! if cepc_ddi_s3trio64 ! if cepc_ddi_ati !
page 6 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 ddi.dll $(_flatreleasedi r)\ddi_flat.dll nk sh endif endif endif endif endif endif ; insert this line endif 11. modify mode0.h. the file mode0.h (located in x:\wince300\platform\cepc\drivers\display\s1d13705) contains the register values required to set the screen resolution, color depth (bpp), display type, display rotation, etc. before building the display driver, refer to the descriptions in the file mode0.h for the default settings of the console driver. if the default does not match the configura- tion you are building for then mode0.h will have to be regenerated with the correct information. use the program 13705cfg to generate the header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual , document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, export the file as a ?c header file for s1d13705 wince drivers?. save the new configuration as mode0.h in the \wince300\platform\cepc\drivers\display, replacing the original configuration file. 12. from the platform window, click on parameterview tab. show the tree for my- platform parameters by clicking on the ?+? sign at the root of the tree. expand the the wince300 tree and click on ?hardware specific files?, then double click on ?platform.reg?. edit the file platform.r eg to match the screen resolution, color depth, and rotation information in mode.h. for example, the display driver section of platform.reg should be as follows when using a 320x240 lcd panel with a color depth of 8 bpp and a swivelview mode of 0 (landscape): ; default for epson display driver ; 320x240 at 8 bits/pixel, lcd display, no rotation ; useful hex values ; 1024=0x400, 768=0x300 640=0x280 480=0x1e0 320=140 240=0xf0 [hkey_local_machine\drivers\display\s1d13705] ?width?=dword:140 ?height?=dword:f0 ?bpp?=dword:8
epson research and development page 7 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 ?activedisp?=dword:1 ?rotation?=dword:0 13. from the build menu, select ?rebuild platform? to generate a windows ce image file (nk.bin) in the project directory x:\myproject\myplatform\reldir\x86_release\nk.bin. build for cepc (x86) on windows ce platform builder 3.00 using the command-line interface 1. install microsoft windows 2000 professional, or windows nt workstation version 4.0 with service pack 5 or later. 2. install windows ce platform builder 3.00. 3. create a batch file called x:\wince300\cepath.bat. put the following in cepath.bat: x: cd \wince300\public\common\oak\misc call wince x86 i486 ce minshell cepc set imgnodebugger=1 set wincerel=1 set cepc_ddi_s1d13x0x=1 4. generate the build environment by calling cepath.bat. 5. create a new folder called s1d13705 under x:\wince300\platform\cepc\drivers\dis- play, and copy the s1d13705 driver source code into x:\wince300\platform\cepc\driv- ers\display\s1d13705. 6. edit the file x:\wince300\platform\cepc\drivers\display\dirs and add s1d13705 into the list of directories. 7. edit the file x:\wince300\platform\cepc\files\platform.bib and make the following two changes: a. insert the following text after the line ?if odo_nodisplay !?: if cepc_ddi_s1d13x0x ddi.dll $(_flatreleasedir)\s1d13x0x.dll nk sh endif b. find the section shown below, and insert the lines as marked: if cepc_ddi_flat ! if cepc_ddi_s1d13x0x! ; insert this line if cepc_ddi_s3virge ! if cepc_ddi_ct655x ! if cepc_ddi_vga8bpp ! if cepc_ddi_s3trio64 ! if cepc_ddi_ati ! ddi.dll $(_flatreleasedir)\ddi_flat.dll nk sh
page 8 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 endif endif endif endif endif endif ; insert this line endif 8. modify mode0.h. the file mode0.h (located in x:\wince300\platform\cepc\drivers\display\s1d13705) contains the register values required to set the screen resolution, color depth (bpp), display type, display rotation, etc. before building the display driver, refer to the descriptions in the file mode0.h for the default settings of the display driver. if the default does not match the configura- tion you are building for then mode0.h will have to be regenerated with the correct information. use the program 13705cfg to generate the header file. for information on how to use 13705cfg, refer to the 13705cfg configuration program user manual , document number x27a-b-001-xx, available at www.erd.epson.com after selecting the desired configuration, export the file as a ?c header file for s1d13705 wince drivers?. save the new configuration as mode0.h in the \wince300\platform\cepc\drivers\display, replacing the original configuration file. 9. edit the file platform.reg to match the screen resolution, color depth, and rota- tion information in mode.h. platform.reg is located in x:\wince300\plat- form\cepc\files. for example, the display driver section of platform.reg should be as follows when using a 320x240 lcd panel with a color depth of 8 bpp and a swivelview mode of 0 (landscape): ; default for epson display driver ; 320x240 at 8 bits/pixel, lcd display, no rotation ; useful hex values ; 1024=0x400, 768=0x300 640=0x280 480=0x1e0 320=140 240=0xf0 [hkey_local_machine\drivers\display\s1d13705] ?width?=dword:140 ?height?=dword:f0 ?bpp?=dword:8 ?activedisp?=dword:1 ?rotation?=dword:0
epson research and development page 9 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 10. delete all the files in the x:\wince300\release directory and delete the file x:\wince300\platform\cepc\*.bif 11. type blddemo at the command prompt to generate a windows ce image file. the file generated will be x:\wince300\release\nk.bin.
page 10 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 installation for cepc environment once the nk.bin file is built, the cepc environment can be started by booting either from a floppy or hard drive configured with a windows 9x operating system. the two methods are described below. 1. to start cepc after booting from a floppy drive: a. create a bootable floppy disk. b. edit config.sys on the floppy disk to contain only the following line: device=a:\himem.sys c. edit autoexec.bat on the floppy disk to contain the following lines: mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\nk.bin d. copy loadcepc.exe and himem.sys to the bootable floppy disk. search for the loadcepc utility in your windows ce directories. e. copy nk.bin to c:\. f. boot the system from the bootable floppy disk. 2. to start cepc after booting from a hard drive: a. copy loadcepc.exe to c:\. search for the loadcepc utility in your windows ce directories. b. edit config.sys on the hard drive to contain only the following line: device=c:\himem.sys c. edit autoexec.bat on the hard drive to contain the following lines: mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\nk.bin d. copy nk.bin and himem.sys to c:\. e. boot the system.
epson research and development page 11 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 configuration there are several issues to consider when configuring the display driver. the issues cover debugging support, register initialization values and memory allocation. each of these issues is discussed in the following sections. compile switches there are several switches, specific to the s1d13705 display driver, which affect the display driver. the switches are added or removed from the compile options in the file sources. wincever this option is automatically set to the numerical version of wince for version 2.12 or later. if the environment variable, _winceosver is not defined, then wincever will default 2.11. the s1d display driver may test against this option to support different wince version-specific features. enableprefervmem this option enables the use of off-screen video memory. when this option is enabled, wince can optimize some blt operations by using off-screen video memory to store images. you may need to disable this option for systems with limited off-screen memory. epsonmessages this debugging option enables the display of epson-specific debug messages. these debug message are sent to the serial debugging port. this option should be disabled unless you are debugging the display driver, as they will significantly impact the performance of the display driver. debug_monitor this option enables the use of the debug monitor. the debug monitor can be invoked when the display driver is first loaded and can be used to view registers, and perform a few debugging tasks. the debug monitor is still under development and is untested. this option should remain disabled unless you are performing specific debugging tasks that require the debug monitor.
page 12 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 graypalette this option is intended for the support of monochrome panels only. the option causes palette colors to be grayscaled for correct display on a mono panel. for use with color panels this option should not be enabled. mode file the mode tables (contained in files mode0.h, mode1.h, mode2.h . . .) contain register information to control the desired display mode. the mode tables must be generated by the configuration program 13705cfg.exe. the display driver comes with example mode tables. by default, only mode0.h is used by the display driver. new mode tables can be created using the 13705cfg program. edit the #include section of mode.h to add the new mode table. if you only support a single display mode, you do not need to add any information to the wince registry. if, however, you support more that one display mode, you should create registry values (see below) that will establish the initial display mode. if your display driver contains multiple mode tables, and if you do not add any registry values, the display driver will default to the first mode table in your list. to select which display mode the display driver should use upon boot, add the following lines to your platform.reg file: [hkey_local_machine\drivers\display\s1d13705] ?width?=dword:140 ?height?=dword:f0 ?bpp?=dword:8 ?rotation?=dword:0 ?refreshrate?=dword:3c ?flags?=dword:1 note that all dword values are in hexadecimal, therefore 140h = 320, f0h = 240, and 3ch = 60. the value for ?flags? should be 1 (lcd). when the display driver starts, it will read these values in the registry and attempt to match a mode table against them. all values must be present and valid for a match to occur, otherwise the display driver will default to the first mode table in your list. a wince desktop application (or control panel applet) can change these registry values, and the display driver will select a different mode upon warmboot. this allows the display driver to support different display configurations and/or orientations. an example appli- cation that controls these registry values will be made available upon the next release of the display driver; preliminary alpha code is available by special request.
epson research and development page 13 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 resource management issues the windows ce 3.0 oem must deal with certain display driver issues relevant to windows ce 3.0. these issues require the oem balance factors such as: system vs. display memory utilization, video performance, and power off capabilities. the section ?simple display driver configuration? on page 15 provides a configuration which should work with most windows ce platforms. this section is only intended as a means of getting started. once the developer has a functional system, it is recommended to optimize the display driver configuration as described below in ?description of windows ce display driver issues?. description of windows ce display driver issues the following are some issues to consider when configuring the display driver to work with windows ce: 1. when windows ce enters the suspend state (power-off), the lcd controller and dis- play memory may lose power, depending on how the oem sets up the system. if dis- play memory loses power, all images stored in display memory are lost. if power-off/power-on features are required, the oem has several options:  if display memory power is turned off, add code to the display driver to save any images in display memory to system memory before power-off, and add code to restore these images after power-on.  if display memory power is turned off, instruct windows ce to redraw all images upon power-on. unfortunately it is not possible to instruct windows ce to redraw any off-screen images, such as icons, slider bars, etc., so in this case the oem must also configure the display driver to never use off-screen memory.  ensure that display memory never loses power. 2. using off-screen display memory significantly improves display performance. for ex- ample, slider bars appear more smooth when using off-screen memory. to enable or disable the use of off-screen memory, edit the file: x:\wince300\platform\cepc\driv- ers\display\s1d13705\sources. in sources, there is a line which, when uncom- mented, will instruct windows ce to use off-screen display memory (if sufficient display memory is available): cdefines=$(cdefines) -denableprefervmem 3. in the file project.reg under ce 3.0, there is a key called porepaint (search the windows ce directories for project.reg). porepaint is relevant when the sus- pend state is entered or exited. porepaint can be set to 0, 1, or 2 as described below: a. porepaint=0  this mode tells windows ce not to save or restore display memory on sus- pend or resume.
page 14 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25  since display data is not saved and not repainted, this is the fastest mode.  main display data in display memory must not be corrupted or lost on sus- pend. the memory clock must remain running.  off-screen data in display memory must not be corrupted or lost on sus- pend. the memory clock must remain running.  this mode cannot be used if power to the display memory is turned off. b. porepaint=1  this is the default mode for windows ce.  this mode tells windows ce to save the main display data to the system memory on suspend.  this mode is used if display memory power is going to be turned off when the system is suspended, and there is enough system memory to save the image.  any off-screen data in display memory is lost when suspended. therefore off-screen memory usage must either be disabled in the display driver (i.e: enableprefervmem not defined in sources file), or new oem-specific code must be added to the display driver to save off-screen data to system memory when the system is suspended, and restored when resumed.  if off-screen data is used (provided that the oem has provided code to save off-screen data when the system suspends), additional code must be added to the display driver?s surface allocation routine to prevent the display driver from allocating the ?main memory save region? in display memory. when wince os attempts to allocate a buffer to save the main display data, wince os marks the allocation request as preferring display memory. we believe this is incorrect. code must be added to prevent this specific allocation from being allocated in display memory - it must be allocated from system mem- ory.  since the main display data is copied to system memory on suspend, and then simply copied back on resume, this mode is fast, but not as fast as mode 0. c. porepaint=2  this mode tells wince to not save the main display data on suspend, and causes wince to repaint the main display on resume.  this mode is used if display memory power is going to be turned off when the system is suspended, and there is not enough system memory to save the im- age.  any off-screen data in display memory is lost, and since there is insuffi- cient system memory to save display data, off-screen memory usage must be disabled.  when the system is resumed, wince instructs all running applications to re- paint themselves. this is the slowest of the three modes.
epson research and development page 15 vancouver design center windows? ce 3.x display drivers s1d13705 issue date: 01/05/25 x27a-e-006-01 simple display driver configuration the following display driver configuration should work with most platforms running windows ce. this configuration disables the use of off-screen display memory and forces the system to redraw the main display upon power-on. 1. this step disables the use of off-screen display memory. edit the file x:\wince300\platform\cepc\drivers\display\s1d13705\sources and change the line cdefines=$(cdefines) -denableprefervmem to #cdefines=$(cdefines) -denableprefervmem 2. this step causes the system to redraw the main display upon power-on. this step is only required if display memory loses power when windows ce is shut down. if dis- play memory is kept powered up (set the s1d13705 in powersave mode), then the dis- play data will be maintained and this step can be skipped. search for the file project.reg in your windows ce directories, and inside project.reg find the key porepaint. change porepaint as follows: ?porepaint?=dword:2
page 16 epson research and development vancouver design center s1d13705 windows? ce 3.x display drivers x27a-e-006-01 issue date: 01/05/25 comments  the display driver is cpu independent, allowing use of the driver for several windows ce platform builder supported platforms.  if you are running 13705cfg.exe to produce multiple mode tables, make sure you change the mode number in the wince tab for each mode table you generate. the display driver supports multiple mode tables, but only if each mode table has a unique mode number.  at this time, the drivers have been tested on the x86 cpus and have been built with plat- form builder v3.00.
s1d13705 embedded memory lcd controller interfacing to the toshiba mips tmpr3912 microprocessor document number: x27a-g-004-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the tmpr3912 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 direct connection to the toshiba tmpr3912 . . . . . . . . . . . . . . . . . . . . 12 4.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . 1 3 4.3 s1d13705 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5 using the ite it8368e pc card buffer . . . . . . . . . . . . . . . . . . . . . . . . 14 5.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5.2 it8368e configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.3 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . 1 6 5.4 s1d13705 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 19 7.2 toshiba mips tmpr3912 processor . . . . . . . . . . . . . . . . . . . . . 19 7.3 ite it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
page 4 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: s1d13705 configuration for direct connection. . . . . . . . . . . . . . . . . . . . . . 13 table 5-1: tmpr3912 to pc card slots address mapping with and without the it8368e . . . . . 16 table 5-2: s1d13705 configuration using the it8368e . . . . . . . . . . . . . . . . . . . . . . . 17 list of figures figure 4-1: s1d13705 to tmpr3912 direct connection . . . . . . . . . . . . . . . . . . . . . . . 12 figure 5-1: s1d13705 to tmpr3912 connection using an it8368e . . . . . . . . . . . . . . . . . 15
page 6 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the toshiba mips tmpr3912 processor. the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 2 interfacing to the tmpr3912 the toshiba mips tmpr3912 processor supports up to two pc card (pcmcia) slots. it is through this host bus interface that the s1d13705 connects to the tmpr3912 processor. the s1d13705 can be successfully interfaced using one of two configurations:  direct connection to tmpr3912.  system design using one ite it8368e pc card/gpio buffer chip.
epson research and development page 9 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that would be used to interface to the tmpr3912. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface modes used for the tmpr3912 are:  generic #1 (chip select, plus individual read enable/write enable for each byte).  generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). 3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for configuration details, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #1 generic #2 ab[15:1] a[15:1] a[15:1] ab0 a0 a0 db[15:0] d[15:0] d[15:0] we1# we1# bhe# cs# external decode external decode bclk bclk bclk bs# connect to v ss connect to io v dd rd/wr# rd1# connect to io v dd rd# rd0# rd# we0# we0# we# wait# wait# wait# reset# reset# reset#
page 10 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 11 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 3.3 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13705. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the tmpr3912 control signals. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we1# is the high byte enable for both read and write cycles for the s1d13705, to be driven low when the host cpu accesses the s1d13705.  we0# is the write enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
page 12 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 4 direct connection to the toshiba tmpr3912 4.1 general description in this example implementation, the s1d13705 occupies the tmpr3912 pc card slot #1. the s1d13705 is easily interfaced to the tmpr3912 with minimal additional logic. the address bus of the tmpr3912 pc card interface is multiplexed and must be demultiplexed using an advanced cmos latch (e.g., 74ahc373). the direct connection approach makes use of the s1d13705 in its ?generic interface #2? configuration. the following diagram demonstrates a typical implementation of the interface. figure 4-1: s1d13705 to tmpr3912 direct connection note see section 3.1 on page 9 and section 3.3 on page 11 for generic #2 pin descriptions. we0# rd# db[7:0] wait# bclk s1d13705 reset# ab[16:13] d[31:24] card1wait* a[12:0] tmpr3912 pull-up oscillator we1# card1csl* card1csh* latch ale system reset cardiowr* cardiord* bs# rd/wr# +3.3v +3.3v endian db[15:8] d[23:16] ab[12:0] v dd dclkout ...or... cs# clki see text clock divider io v dd , core v dd +3.3v note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 the ?generic #2? host interface control signals of the s1d13705 are asynchronous with respect to the s1d13705 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired:  pixel and frame rates.  power budget. part count.  maximum s1d13705 clock frequencies. the s1d13705 also has internal clock dividers providing additional flexibility. 4.2 memory mapping and aliasing in this example implementation the tmpr3912 control signal cardreg* is ignored; therefore the s1d13705 takes up the entire pc card slot 1. the s1d13705 requires an addressing space of 128k bytes. the on-chip display memory occupies the range 0 through 13fffh. the registers occupy the range 1ffe0h through 1ffffh. the tmpr3912 demultiplexed address lines a17 and above are ignored, thus the s1d13705 is aliased 512 times at 128k byte intervals over the 64m byte pc card slot #1 memory space. note if aliasing is undesirable, additional decoding circuitry must be added. 4.3 s1d13705 configuration the s1d13705 is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. the table below shows those configuration settings relevant to the direct connection approach. table 4-1: s1d13705 configuration for direct connection s1d13705 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for toshiba tmpr3912 host bus interface
page 14 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 5 using the ite it8368e pc card buffer if the system designer uses the ite it8368e pc card and multiple-function i/o buffer, the s1d13705 can be interfaced so that it ?shares? a pc card slot. the s1d13705 is mapped to a rarely-used 16m byte portion of the pc card slot buffered by the it8368e, making the s1d13705 virtually transparent to pc card devices that use the same slot. 5.1 hardware description the ite8368e has been specially designed to support epson lcd controllers and provides eleven multi-function io pins (mfio). configuration registers may be used to allow these mfio pins to provide the control signals required to implement the s1d13705 cpu interface. the tmpr3912 processor only provides addresses a[12:0], therefore devices requiring more address space must use an external device to latch a[25:13]. the it8368e?s mfio pins can be configured to provide this latched address.
epson research and development page 15 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 figure 5-1: s1d13705 to tmpr3912 connection using an it8368e note see section 3.1 on page 9 and section 3.2 on page 10 for generic #1 pin descriptions. the ?generic #1? host interface control signals of the s1d13705 are asynchronous with respect to the s1d13705 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on pixel and frame rates, power budget, part count and maximum s1d13705 respective clock frequencies. also, internal s1d13705 clock dividers provide additional flexibility. it8368e s1d13705 a[12:0] ab[12:0] d[31:24] db[7:0] lha[23]/mfio[10] we1# we0# rd/wr# rd# cs# lha[22]/mfio[9] lha[21]/mfio[8] lha[20]/mfio[7] lha[19]/mfio[6] wait# cardxwait* reset# ab[16:13] tmpr3912 d[23:16] db[16:8] dclkout endian system reset lha[16:13]/ oscillator ...or... pull-up v dd bclk clki see text clock divider bs# io v dd , core v dd +3.3v mfio[3:0] note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
page 16 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 5.2 it8368e configuration the it8368e provides eleven multi-function io pins (mfio). the it8368e must have both ?fix attribute/io? and ?vga? modes on. when both these modes are enabled, the mfio pins provide control signals needed by the s1d13705 host bus interface, and a 16m byte portion of the system pc card attribute and io space is allocated to address the s1d13705. when accessing the s1d13705 the associated card-side signals are disabled in order to avoid any conflicts. for mapping details, refer to section 3.3: ?memory mapping and aliasing.? for connection details see figure 5-1: ?s1d13705 to tmpr3912 connection using an it8368e,? on page 15 . for further information on the it8368e, refer to the it8368e pc card/gpio buffer chip specification . note when a second it8368e is used, that circuit should not be set in vga mode. 5.3 memory mapping and aliasing when the tmpr3912 accesses the pc card slots without the ite it8368e, its system memory is mapped as in table 5-1: tmpr3912 to pc card slots address mapping with and without the it8368e . note bit card1ioen or card2ioen, depending on which card slot is used, must to be set to 0 in the tmpr3912 memory configuration register 3. when the tmpr3912 accesses the pc card slots buffered through the ite it8368e, bits card1ioen and card2ioen are ignored and the attribute/io space of the tmpr3912 is divided into attribute, i/o and s1d13705 access. details of the attribute/io address reallocation by the it8368e are found in table 5-1: tmpr3912 to pc card slots address mapping with and without the it8368e . table 5-1: tmpr3912 to pc card slots address mapping with and without the it8368e pc card slot # tmpr3912 address size using the ite it8368e direct connection, cardnioen=0 direct connection, cardnioen=1 1 0800 0000h 16m byte card 1 io s1d13705 (aliased 512 times at 128k byte intervals) card 1 io 0900 0000h 16m byte s1d13705 (aliased 128 times at 128k byte intervals) 0a00 0000h 32m byte card 1 attribute 6400 0000h 64m byte card 1 memory s1d13705 (aliased 512 times at 128k byte intervals)
epson research and development page 17 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 5.4 s1d13705 configuration the s1d13705 is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the s1d13705 hardware functional specification , document number x26a-a-001-xx. the table below shows those configuration settings relevant to this specific interface. 2 0c00 0000h 16m byte card 2 io s1d13705 (aliased 512 times at 128k byte intervals) card 2 io 0d00 0000h 16m byte s1d13705 (aliased 128 times at 128k byte intervals) 0e00 0000h 32m byte card 2 attribute 6800 0000h 64m byte card 2 memory s1d13705 (aliased 512 times at 128k byte intervals) table 5-2: s1d13705 configuration using the it8368e s1d13705 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for connection using ite it8368e table 5-1: tmpr3912 to pc card slots address mapping with and without the it8368e pc card slot # tmpr3912 address size using the ite it8368e direct connection, cardnioen=0 direct connection, cardnioen=1
page 18 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 6 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1357cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or www.eea.epson.com.
epson research and development page 19 vancouver design center interfacing to the toshiba mips tmpr3912 microprocessor s1d13705 issue date: 01/02/13 x27a-g-004-02 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 toshiba mips tmpr3912 processor 7.3 ite it8368e japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 http://www.toshiba.com/taec/nonflash/indexproducts.html integrated technology express, inc. sales & marketing division 2710 walsh avenue santa clara, ca 95051, usa tel: (408) 980-8168 fax: (408) 980-9232 http://www.iteusa.com
page 20 epson research and development vancouver design center s1d13705 interfacing to the toshiba mips tmpr3912 microprocessor x27a-g-004-02 issue date: 01/02/13 this page left blank
s1d13705 embedded memory lcd controller s1d13705 power consumption document number: x27a-g-006-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center s1d13705 power consumption x27a-g-006-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center power consumption s1d13705 issue date: 01/02/13 x27a-g-006-02 1 s1d13705 power consumption s1d13705 power consumption is affected by many system design variables.  input clock frequency (clki): the clki frequency and the internal clock divide register deter- mine the operating clock (clk) frequency of the s1d13705. the higher clk is, the higher the frame fate, performance, and power consumption.  cpu interface: the s1d13705 current consumption depends on the busclk frequency, data width, number of toggling pins, and other factors ? the higher the busclk, the higher the cpu performance and power consumption. v dd voltage levels (core and io): the voltage level of the core and io sections in the s1d13705 affects power consumption ? the higher the voltage, the higher the consumption.  display mode: the resolution, panel type, and color depth affect power consumption. the higher the resolution/color depth and number of lcd panel signals, the higher the power consumption. note if the high performance option is turned on, the power consumption increases to that of 8 bit-per-pixel mode for all color depths. there are two power save modes in the s1d13705: software and hardware power save. the power consumption of these modes is affected by various system design variables.  cpu bus state during power save: the state of the cpu bus signals during power save has a substantial effect on power consumption. an inactive bus (e.g. busclk = low, addr = low etc.) reduces overall system power consumption.  clki state during power save: disabling the clki during power save has substantial power savings.
page 4 epson research and development vancouver design center s1d13705 power consumption x27a-g-006-02 issue date: 01/02/13 1.1 conditions table 1-1: ?s1d13705 total power consumption? below gives an example of a specific environment and its effects on power consumption. note 1. conditions for software power save:  cpu interface active (signals toggling)  clki active 2. conditions for hardware power save:  cpu interface inactiv e (high impedance)  clki active table 1-1: s1d13705 total power consumption test condition core v dd = 3.3v, io v dd = 3.3v busclk = 8.33mhz gray shades / colors power consumption active power save mode core io total software hardware 1 input clock = 6mhz lcd panel = 320x240 4-bit single monochrome black-and-white 4 gray shades 16 gray shades 4.29mw 4.99mw 6.13mw 0.52mw 0.76mw 0.75mw 4.81mw 5.75mw 6.88mw 1.44mw 1 1.21mw 2 2 input clock = 6mhz lcd panel = 320x240 4-bit single color 2 colors 4 colors 16 colors 256 colors 4.64mw 5.30mw 6.58mw 8.65mw 0.73mw 1.51mw 1.57mw 1.52mw 5.37mw 6.81mw 8.15mw 10.16mw 1.44mw 1 1.22mw 2 3 input clock = 25mhz lcd panel = 640x480 8-bit single monochrome black-and-white 4 gray shades 13.97mw 16.75mw 1.10mw 2.08mw 15.07mw 18.83mw 2.53mw 1 2.32mw 2 4 input clock = 25mhz lcd panel = 640x480 8-bit single color 2 colors 4 colors 15.53mw 18.30mw 2.64mw 7.16mw 18.17mw 25.47mw 2.53mw 1 2.32mw 2 5 input clock = 25mhz lcd panel = 640x480 8-bit dual monochrome black-and-white 4 grey shades 13.84mw 20.38mw 1.08mw 2.07mw 14.93mw 22.45mw 2.53mw 1 2.32mw 2 6 input clock = 25mhz lcd panel = 640x480 8-bit dual color 2 colors 4 colors 15.82mw 23.31mw 2.62mw 7.01mw 18.44mw 30.32mw 2.53mw 1 2.32mw 2 7 input clock = 25mhz lcd panel = 640x480 9-bit tft 2 colors 4 colors 11.42mw 19.74mw 7.40mw 20.96mw 18.82mw 40.70mw 2.53mw 1 2.32mw 2
epson research and development page 5 vancouver design center power consumption s1d13705 issue date: 01/02/13 x27a-g-006-02 2 summary the system design variables in section 1, ?s1d13705 power consumption? and in table 1-1: ?s1d13705 total power consumption? show that s1d13705 power consumption depends on the specific implementation. active mode power consumption depends on the desired cpu perfor- mance and lcd frame-rate, whereas power save mode consumption depends on the cpu interface and input clock state. in a typical design environment, the s1d13705 can be configured to be an extremely power-efficient lcd controller with high performance and flexibility.
page 6 epson research and development vancouver design center s1d13705 power consumption x27a-g-006-02 issue date: 01/02/13 this page left blank
s1d13705 embedded memory lcd controller interfacing to the motorola ?dragonball? family of microprocessors document number: x27a-g-007-04 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mc68328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mc68328 system bus . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3.3 mc68k #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4 mc68328 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . 12 2.4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 2.4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.4.3 mc68328 chip select configuration . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 interfacing to the mc68ez328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1 the mc68ez328 system bus . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.4 mc683ez28 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . 18 3.4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 3.4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4.3 mc68ez328 chip select configuration . . . . . . . . . . . . . . . . . . . . . . . 19 4 interfacing to the mc68vz328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.1 the mc68vz328 system bus . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3.3 mc68k #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.4 mc68vz328 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . 24 4.4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 4.4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.4.3 mc68vz328 chip select and pin configuration . . . . . . . . . . . . . . . . . . . 27 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
page 4 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . .30 7.2 motorola dragonball processors . . . . . . . . . . . . . . . . . . . . . . . .30
epson research and development page 5 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 list of tables table 2-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 2-2: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 2-3: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 3-2: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 3-3: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 4-2: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 4-3: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 list of figures figure 2-1: typical implementation of mc68328 to s1d13705 interface - mc68k #1 . . . . . . . 12 figure 2-2: typical implementation of mc68328 to s1d13705 interface - generic #1 . . . . . . . 13 figure 3-1: typical implementation of mc68ez328 to s1d13705 interface - generic #1 . . . . . . 18 figure 4-1: typical implementation of mc68vz328 to s1d13705 interface - mc68k #1 . . . . . . 24 figure 4-2: typical implementation of mc68vz328 to s1d13705 interface - generic #1 . . . . . . 25
page 6 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the motorola ?dragonball? family of micropro- cessors. each ?dragonball? microprocessor, the mc68328, the mc68ez328, and the mc68vz328, will be described in their own sections. by implementing an embedded display refresh buffer, the s1d13705 can reduce system power consumption, improve image quality, and increase system performance as compared to the dragonball?s on-chip lcd controller. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at documentation@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 2 interfacing to the mc68328 2.1 the mc68328 system bus the mc68328 is the first generation of motorola?s dragonball microprocessors. the mc68328 is an integrated controller for handheld products, based upon the mc68ec000 microprocessor core. it implements a 16-bit data bus and a 32-bit address bus. the bus interface consists of all the standard mc68ec000 bus interface signals, plus some new signals intended to simplify the task of interfacing to typical memory and peripheral devices. the mc68ec000 bus control signals are well documented in motorola?s user manuals, and will not be described here. a brief summary of the new signals appears below:  output enable (oe ) is asserted when a read cycle is in process; it is intended to connect to the output enable control of a typical static ram, eprom, or flash eprom device.  upper write enable and lower write enable (uwe / lwe ) are asserted during memory write cycles for the upper and lower bytes of the 16-bit data bus; they may be directly connected to the write enable inputs of a typical memory device. the s1d13705 implements the mc68ec000 bus interface using its mc68k #1 mode, so this mode may be used to connect the mc68328 directly to the s1d13705 with no glue logic. however, several of the mc68ec000 bus control signals are multiplexed with io and interrupt signals on the mc68328, and in many applications it may be desirable to make these pins available for these alternate functions. this requirement may be accommo- dated through the use of the generic #1 interface mode on the s1d13705. 2.2 chip-select module the mc68328 can generate up to 16 chip select outputs, organized into four groups, ?a? through ?d?. each chip select group has a common base address register and address mask register, to set the base address and block size of the entire group. in addition, each chip select within a group has its own address compare and address mask register, to activate the chip select for a subset of the group?s address block. finally, each chip select may be individually programmed to control an 8 or 16-bit device, and each may be individually programmed to generate from 0 through 6 wait states internally, or allow the memory or peripheral device to terminate the cycle externally through use of the standard mc68000 dtack signal. groups a and b can have a minimum block size of 64k bytes, so these are typically used to control memory devices. chip select a0 is active immediately after reset, so it is typically used to control a boot eprom device. groups c and d have a minimum block size of 4k bytes, so they are well-suited to controlling peripheral devices. chip select d3 is associated with the mc68328 on-chip pcmcia control logic.
epson research and development page 9 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 2.3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that may be used to interface to the mc68328. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the two interface modes that may be used for the mc68328 are:  motorola mc68k #1 (using upper data strobe / lower data strobe).  generic #1 (chip select, plus individual read enable/write enable for each byte). 2.3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 2-1: host bus interface pin mapping s1d13705 pin names mc68k #1 generic #1 ab[15:1] a[15:1] a[15:1] ab0 lds a0 db[15:0] d[15:0] d[15:0] we1# uds we1# cs# external decode external decode bclk clk bclk bs# as connect to v ss rd/wr# r/w rd1# rd# connect to io v dd rd0# we0# connect to io v dd we0# wait# dtack wait# reset# reset# reset#
page 10 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 2.3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 11 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 2.3.3 mc68k #1 interface mode the mc68k #1 interface mode can be used to interface to the mc68328 microprocessor if the previously mentioned, multiplexed, bus signals will not be used for other purposes. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab1 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  a0 and we1# are the enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading or writing data to the s1d13705.  rd/wr# is the read/write signal that is driven low when the cpu writes to the s1d13705 and is driven high when the cpu is doing a read from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.  the bus status (bs#) signal indicates that the address on the address bus is valid.  the we0# and rd# signals is not used in the bus interface for mc68k #1 and must be tied high (tied to io v dd ).
page 12 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 2.4 mc68328 to s1d13705 interface 2.4.1 hardware description the interface between the mc68328 and the s1d13705 can be implemented using either the mc68k #1 or generic #1 host bus interface of the s1d13705. using the mc68k #1 host bus interface the mc68328 multiplexes dual functions on some of its bus control pins (specifically uds , lds , and dtack ). in implementations where all of these pins are available for use as bus control pins, then the s1d13705 interface is a straightforward implementation of the ?mc68k #1? host bus interface. the following diagram shows a typical implementation of the mc68328 to s1d13705 using the mc68k #1 host bus interface. for further information on the mc68k #1 host bus interface and ac timing, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. figure 2-1: typical implementation of mc68328 to s1d13705 interface - mc68k #1 mc68328 s1d13705 a[16:0] d[15:0] dtack uds lds r/w clk0 ab[16:1] db[15:0] cs# wait# we1# ab0 rd/wr# rd# busclk reset# vcc 1k csb3 as bs# vcc system reset we0## vcc note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 using the generic #1 host bus interface if uds and/or lds are required for their alternate io functions, then the mc68328 to s1d13705 interface may be implemented using the s1d13705 generic #1 host bus interface. note that in either case, the dtack signal must be made available for the s1d13705, since it inserts a variable number of wait states depending upon cpu/lcd synchronization and the lcd panel display mode. wait# must be inverted (using an inverter enabled by cs#) to make it an active high signal and thus compatible with the mc68328 architecture. a single resistor is used to pull up the wait# (dtack ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mc68328 to s1d13705 using the generic #1 host bus interface. for further information on the generic #1 host bus interface and ac timing, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. figure 2-2: typical implementation of mc68328 to s1d13705 interface - generic #1 mc68328 s1d13705 a[16:0] d[15:0] dtack uwe lwe oe clk0 ab[16:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 1k csb3 bs# note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states). system reset
page 14 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 2.4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show those configuration settings important to the mc68k #1 and generic #1 host bus interfaces. 2.4.3 mc68328 chip select configuration the s1d13705 requires a 128k byte address space for the display buffer and its internal registers. to accommodate this block size, it is preferable (but not required) to use one of the chip selects from groups a or b. virtually any chip select other than csa0 or csd3 would be suitable for the s1d13705 interface. in the example interface, chip select csb3 is used to control the s1d13705. a 128k byte address space is used with the s1d13705 control registers mapped into the top 32 bytes of the 128k byte block and the 80k bytes of display buffer mapped to the starting address of the block. the chip select should have its ro (read only) bit set to 0, its bsw (bus data table 2-2: summary of power-on/reset options s1d1370 5 pin name value on this pin at the rising edge of reset# is used to configure: (1/0) 01 cnf0 see table 2-3: ?host bus interface selection? cnf1 cnf2 cnf3 little endian big endian = configuration for mc68328 support table 2-3: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 010xreserved 0 1 1 x mc68k #1, 16-bit 100xreserved 1 0 1 x mc68k #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mc68328 using generic #1 host bus interface = configuration for mc68328 using mc68k #1 host bus interface
epson research and development page 15 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 width) set to 1 for a 16-bit bus, and the ws (wait states) bit should be set to 111b to allow the s1d13705 to terminate bus cycles externally. enable dtack pin function with register fffff433, port g select register, bit 0.
page 16 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 3 interfacing to the mc68ez328 3.1 the mc68ez328 system bus the mc68ez328 is motorola?s second generation dragonball microprocessor. the dragonballez is an integrated controller for handheld products, based upon the mc68ec000 microprocessor core. the dragonballez differs from its predecessor mainly in that it has increased speed, a dram controller, infrared communication, and an in- circuit emulator. the bus interface has also been simplified; it implements a 16-bit data bus and a 24-bit address bus. the bus interface is based on the standard mc68ec000 bus interface signals although the data bus byte lane control signals of the mc68ec000 bus interface (uds and lds - upper and lower data strobes) have been replaced by some new signals intended to simplify the task of interfacing to typical memory and peripheral devices. the mc68ec000 bus control signals are well documented in motorola?s user manuals, and will not be described here. a brief summary of the new signals appears below:  output enable (oe ) is asserted when a read cycle is in process; it is intended to connect to the output enable control of a typical static ram, eprom, or flash eprom device.  upper write enable and lower write enable (uwe / lwe ) are asserted during memory write cycles for the upper and lower bytes of the 16-bit data bus; they may be directly connected to the write enable inputs of a typical memory device. the s1d13705 implements the mc68000 bus interface using its mc68k #1 mode but this mode requires the mc68ec000 control signals uds and lds so this mode cannot be used to connect the mc68ez328 directly to the s1d13705. however, the generic #1 interface mode on the s1d13705 is well suited to interface to the mc68ez328. 3.2 chip-select module the mc68ez328 can generate up to 8 chip select outputs, organized into four groups ?a? through ?d?. each chip select group has a common base address register and address mask register, to set the base address and block size of the entire group. in addition, each chip select within a group has its own address compare and address mask register, to activate the chip select for a subset of the group?s address block. finally, each chip select may be individually programmed to control an 8 or 16-bit device, and each may be individually programmed to generate from 0 through 6 wait states internally, or allow the memory or allow the memory or peripheral device to terminate the cycle externally through use of the standard mc68000 dtack signal. groups a and b are used to control rom, sram, and flash memory devices and have a block size of 128k bytes to 16m bytes. chip select a0 is active immediately after reset and is a global chip-select so it is typically used to control a boot eprom device. this chip
epson research and development page 17 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 select ceases to decode globally once this chip-select?s registers are programmed. groups c and d are special in that they can also control dram interfaces. these last two groups have block size of 32k bytes to 4m bytes. 3.3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that may be used to interface to the mc68ez328. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode that may be used for the mc68ez328 is:  generic #1 (chip select, plus individual read enable/write enable for each byte). 3.3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #1 ab[15:1] a[15:1] ab0 a0 db[15:0] d[15:0] we1# we1# cs# external decode bclk bclk bs# connect to v ss rd/wr# rd1# rd# rd0# we0# we0# wait# wait# reset# reset#
page 18 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 3.3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 19 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 3.4 mc683ez28 to s1d13705 interface 3.4.1 hardware description the interface between the mc68328 and the s1d13705 can be implemented using the generic #1 host bus interface of the s1d13705. the dtack signal must be made available for the s1d13705, since it inserts a variable number of wait states depending upon cpu/lcd synchronization and the lcd panel display mode. wait# must be inverted (using an inverter enabled by cs#) to make it an active high signal and thus compatible with the mc68ez328 architecture. a single resistor is used to pull up wait# (dtack ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mc68ez328 to s1d13705 using the generic #1 host bus interface. for further information on the generic #1 host bus interface and ac timing, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. figure 3-1: typical implementation of mc68ez328 to s1d13705 interface - generic #1 mc68ez328 s1d13705 a[16:0] d[15:0] dtack uwe lwe oe clk0 ab[16:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 1k csb0 bs# note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states). system reset
page 20 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 3.4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show those configuration settings important to the generic #1 host bus interface. 3.4.3 mc68ez328 chip select configuration the s1d13705 requires a 128k byte address space for the display buffer and its internal registers. to accommodate this block size, it is preferable (but not required) to use one of the chip selects from groups a or b. groups a and b can have a size range of 128k bytes to 16m bytes and groups c and d have a size range of 32k bytes to 16m bytes. therefore, any chip select other than csa0 would be suitable for the s1d13705 interface. in the example interface, chip select csb0 is used to control the s1d13705. a 128k byte address space is used with the s1d13705 control registers mapped into the top 32 bytes of the 128k byte block and the 80k bytes of display buffer mapped to the starting address of the block. the chip select should have its ro (read only) bit set to 0, its bsw (bus data table 3-2: summary of power-on/reset options s1d1370 5 pin name value on this pin at the rising edge of reset# is used to configure: (1/0) 01 cnf0 see table 2-3: ?host bus interface selection? cnf1 cnf2 cnf3 little endian big endian = configuration for mc68ez328 support table 3-3: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 010xreserved 0 1 1 x mc68k #1, 16-bit 100xreserved 1 0 1 x mc68k #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mc68ez328 using generic #1 host bus interface
epson research and development page 21 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 width) set to 1 for a 16-bit bus, and the ws (wait states) bit should be set to 111b to allow the s1d13705 to terminate bus cycles externally with dtack . enable dtack pin function with register fffff433, port g select register, bit 0.
page 22 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 4 interfacing to the mc68vz328 4.1 the mc68vz328 system bus the mc68vz328 is motorola?s third generation dragonball microprocessor. the dragon- ballvz is an integrated controller for handheld products, based upon the flx68000 micro- processor core with an external 24-bit address bus and 16-bit data bus. the dragonballvz differs from its predecessor mainly in that it has increased speed, and support for sdram has been added to the dram controller. the bus interface consists of all the standard mc68000 bus interface signals except as , plus some new signals intended to simplify the task of interfacing to typical memory and peripheral devices. the 68000 signals are multi- plexed with irda, spi and lcd controller signals. the mc68000 bus control signals are well documented in motorola?s user manuals, and will not be described here. a brief summary of the new signals appears below:  output enable (oe ) is asserted when a read cycle is in process; it is intended to connect to the output enable control of a typical static ram, eprom, or flash eprom device.  upper write enable and lower write enable (uwe / lwe ) are asserted during memory write cycles for the upper and lower bytes of the 16-bit data bus; they may be directly connected to the write enable inputs of a typical memory device. the s1d13705 implements the mc68000 bus interface using its mc68k #1 mode. this mode may be used to interface the s1d13705 to the dragonballvz if external logic is used to generate as . the generic #1 interface mode on the s1d13705 is also well suited to interface to the mc68vz328. 4.2 chip-select module the mc68vz328 can generate up to 8 chip select outputs, organized into four groups, ?a? through ?d?. each chip select group has a common base address register and address mask register, to set the base address and block size of the entire group. in addition, each chip select within a group has its own address compare and address mask register, to activate the chip select for a subset of the group?s address block. finally, each chip select may be individually programmed to control an 8 or 16-bit device, and each may be individually programmed to generate from 0 through 6 wait states internally, or allow the memory or peripheral device to terminate the cycle externally through use of the standard mc68000 dtack signal. groups a and b are used to control rom, sram, and flash memory devices and have a block size of 128k bytes to 16m bytes. chip select a0 is active immediately after reset and is a global chip-select so it is typically used to control a boot eprom device. this chip select ceases to decode globally once this chip-select?s registers are programmed. groups c and d are special in that they can also control dram interfaces. these last two groups have block size of 32k bytes to 4m bytes.
epson research and development page 23 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 4.3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that may be used to interface to the mc68vz328. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the two interface modes that may be used for the mc68vz328 are:  motorola mc68k #1 (using upper data strobe / lower data strobe).  generic #1 (chip select, plus individual read enable/write enable for each byte). 4.3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 4-1: host bus interface pin mapping s1d13705 pin names mc68k #1 generic #1 ab[15:1] a[15:1] a[15:1] ab0 lds a0 db[15:0] d[15:0] d[15:0] we1# uds we1# cs# external decode external decode bclk clk bclk bs# as connect to v ss rd/wr# r/w rd1# rd# connect to io v dd rd0# we0# connect to io v dd we0# wait# dtack wait# reset# reset# reset#
page 24 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 4.3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 25 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 4.3.3 mc68k #1 interface mode the mc68k #1 interface mode can be used to interface to the mc68vz328 micropro- cessor if the previously mentioned, multiplexed, bus signals will not be used for other purposes. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab1 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  a0 and we1# are the enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading or writing data to the s1d13705.  rd/wr# is the read/write signal that is driven low when the cpu writes to the s1d13705 and is driven high when the cpu is doing a read from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.  the bus status (bs#) signal indicates that the address on the address bus is valid.  the we0# and rd# signals is not used in the bus interface for mc68k #1 and must be tied high (tied to io v dd ).
page 26 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 4.4 mc68vz328 to s1d13705 interface 4.4.1 hardware description the interface between the mc68vz328 and the s1d13705 can be implemented using either the mc68k #1 or generic #1 host bus interface of the s1d13705. using the mc68k #1 host bus interface the mc68vz328 multiplexes dual functions on some of its bus control pins (specifically uds , lds , and dtack ). in implementations where all of these pins are available for use as bus control pins, then the s1d13705 interface is a straightforward implementation of the ?mc68k #1? host bus interface. since as is not provided by the dragonballvz, csb1 is connected to bs# and indicates that a valid address is on the bus. the following diagram shows a typical implementation of the mc68vz328 to s1d13705 using the mc68k #1 host bus interface. for further information on the mc68k #1 host bus interface and ac timing, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. figure 4-1: typical implementation of mc68vz328 to s1d13705 interface - mc68k #1 mc68vz328 s1d13705 a[16:0] d[15:0] dtack uds lds r/w clk0 ab[16:1] db[15:0] cs# wait# we1# ab0 rd/wr# rd# busclk reset# vcc 1k csb1 bs# vcc system reset we0## vcc note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g . cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 27 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 using the generic #1 host bus interface the dtack signal must be made available for the s1d13705, since it inserts a variable number of wait states depending upon cpu/lcd synchronization and the lcd panel display mode. wait# must be inverted (using an inverter enabled by cs#) to make it an active high signal and thus compatible with the mc68vz328 architecture. a single resistor is used to pull up the wait# (dtack ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mc68vz328 to s1d13705 using the generic #1 host bus interface. for further information on the generic #1 host bus interface and ac timing, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. figure 4-2: typical implementation of mc68vz328 to s1d13705 interface - generic #1 mc68vz328 s1d13705 a[16:0] d[15:0] dtack uwe lwe oe clk0 ab[16:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 1k csb1 bs# note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states). system reset
page 28 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 4.4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show those configuration settings important to the mc68k #1 and generic #1 host bus interfaces. table 4-2: summary of power-on/reset options s1d1370 5 pin name value on this pin at the rising edge of reset# is used to configure: (1/0) 01 cnf0 see table 2-3: ?host bus interface selection? cnf1 cnf2 cnf3 little endian big endian = configuration for mc68vz328 support table 4-3: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 010xreserved 0 1 1 x mc68k #1, 16-bit 100xreserved 1 0 1 x mc68k #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mc68vz328 using generic #1 host bus interface = configuration for mc68vz328 using mc68k #1 host bus interface
epson research and development page 29 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 4.4.3 mc68vz328 chip select and pin configuration the s1d13705 requires a 128k byte address space for the display buffer and its internal registers. to accommodate this block size, it is preferable (but not required) to use one of the chip selects from groups a or b. groups a and b can have a size range of 128k bytes to 16m bytes and groups c and d have a size range of 32k bytes to 16m bytes. therefore, any chip select other than csa0 would be suitable for the s1d13705 interface. in the example interface, chip select csb1 is used to control the s1d13705. a 128k byte address space is used with the s1d13705 control registers mapped into the top 32 bytes of the 128k byte block and the 80k bytes of display buffer mapped to the starting address of the block. the chip select should have its ro (read only) bit set to 0, its bsw (bus data width) set to 1 for a 16-bit bus, and the ws (wait states) bit should be set to 111b to allow the s1d13705 to terminate bus cycles externally with dtack . enable dtack pin function with register fffff433, port g select register, bit 0. additional registers must be configured if the m68k #1 host bus interface is used. lds , uds and r/w must be enabled by setting register ffffff443h bits 1, 2, and 3 to zero to enable the internal 68000 pin functions.
page 30 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 5 software test utilities and windows? ce display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
epson research and development page 31 vancouver design center interfacing to the motorola ?dragonball? family of microprocessors s1d13705 issue date: 01/02/13 x27a-g-007-04 6 references 6.1 documents  motorola inc., mc68328 dragonball? integrated microprocessor user?s manual , motorola publication no. mc68328um; available on the internet at http://www.mot.com/sps/wireless/products/mc68328.html.  motorola inc., mc68ez328 dragonball-ez? integrated processor user?s manual , motorola publication no. mc68ez328um1; available on the internet at http://www.mot.com/sps/wireless/products/mc68ez328.html.  motorola inc., mc68vz328 dragonball-vz? integrated processor user?s manual , motorola publication no. mc683vz28um; available on the internet at http://www.mot.com/sps/wireless/products/mc68vz328.html.  epson research and development, inc., s1d13705 hardware functional specification ; document number x27a-a-001-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  motorola inc.: motorola literature distribution center, (800) 441-2447.  motorola website: http://www.mot.com.  epson electronics america website: http://www.eea.epson.com.
page 32 epson research and development vancouver design center s1d13705 interfacing to the motorola ?dragonball? family of microprocessors x27a-g-007-04 issue date: 01/02/13 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 motorola dragonball processors  motorola design line, (800) 521-6274.  local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
s1d13705 embedded memory lcd controller interfacing to the nec vr4102/vr4111 microprocessor document number: x27a-g-008-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 interfacing to the nec vr4102/vr4111 . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 the nec vr4102/vr4111 system bus . . . . . . . . . . . . . . . . . . . . 10 2.1.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1.2 lcd memory access cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 vr4102/vr4111 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . 14 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 15 4.3 nec vr4102/vr4111 configuration . . . . . . . . . . . . . . . . . . . . . 16 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 19 7.2 nec electronics inc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
page 4 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 4-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 list of figures figure 2-1: nec vr4102/vr4111 read/write cycles . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 4-1: typical implementation of vr4102/vr4111 to s1d13705 interface . . . . . . . . . . . 14
page 6 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the nec vr4102/vr4111 microprocessor ( u pd30102). the nec vr4102/vr4111 microprocessor is specifically designed to support an external lcd controller and the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 2 interfacing to the nec vr4102/vr4111 2.1 the nec vr4102/vr4111 system bus the vr-series family of microprocessors features a high-speed synchronous system bus typical of modern microprocessors. designed with external lcd controller support and windows ce-based embedded consumer applications in mind, the vr4102/vr4111 offers a highly integrated solution for portable systems. this section is an overview of the operation of the cpu bus to establish interface requirements. 2.1.1 overview the nec vr4102/vr4111 is designed around the risc architecture developed by mips. this microprocessor is designed around the 66mhz vr4100 cpu core which supports 64- bit processing. the cpu communicates with the bus control unit (bcu) with its internal sysad bus. the bcu in turn communicates with external devices with its add and dat buses that can be dynamically sized to 16 or 32-bit operation. the nec vr4102/vr4111 has direct support for an external lcd controller. specific control signals are assigned for an external lcd controller that provide an easy interface to the cpu. a 16m byte block of memory is assigned for the lcd controller with its own chip select and ready signals available. word or byte accesses are controlled by the system high byte signal, shb#.
epson research and development page 9 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 2.1.2 lcd memory access cycles once an address in the lcd block of memory is placed on the external address bus, add[25:0], the lcd chip select, lcdcs#, is driven low. the read or write enable signals, rd# and wr#, are driven low for the appropriate cycle. lcdrdy is driven low by the s1d13705 to insert wait states into the cycle. the high byte enable is driven low for 16-bit transfers and high for 8-bit transfers. figure 2-1: ?nec vr4102/vr4111 read/write cycles,? on page 9 shows the read and write cycles to the lcd controller interface. figure 2-1: nec vr4102/vr4111 read/write cycles tclk add[25:0] lcdcs# wr#,rd# lcdrdy valid valid valid hi-z hi-z d[15:0] d[15:0] (write) (read) shb#
page 10 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that would be used to interface to the vr4102/vr4111. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode used for the vr4102/vr4111 is:  generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). 3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #2 ab[15:1] a[15:1] ab0 a0 db[15:0] d[15:0] we1# bhe# cs# external decode bclk bclk bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we# wait# wait# reset# reset#
epson research and development page 11 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 3.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13705. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the vr4102/vr4111 control signals. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we1# is the high byte enable for both read and write cycles.  we0# is the write enable for the s1d13705, to be driven low when the host cpu is writing data to the s1d13705.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
page 12 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 4 vr4102/vr4111 to s1d13705 interface 4.1 hardware description the nec vr4102/vr4111 microprocessor is specifically designed to support an external lcd controller by providing the internal address decoding and control signals necessary. by using the generic # 2 interface, no glue logic is required to interface the s1d13705 and the nec vr4102/vr4111. a pull-up resistor is attached to wait# to speed up its rise time when terminating a cycle. the following diagram shows a typical implementation of the vr4102/vr4111 to s1d13705 interface. figure 4-1: typical implementation of vr4102/vr4111 to s1d13705 interface we1# we0# db[15:0] wait# rd# busclk s1d13705 cs# reset# ab[16:0] shb# wr# data[15:0] lcdcs# rd# busclk lcdrdy add[16:0] nec vr4102/vr4111 pull-up bs# rd/wr# vcc vcc system reset note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show those configuration settings important to the generic #2 host bus interface. table 4-1: summary of power-on/reset options signal value on this pin at the rising edge of reset# is used to configure: (0/1) 01 cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian = configuration for nec vr4102/vr4111 support table 4-2: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 1 generic #2, 16-bit = configuration for nec vr4102/vr4111 support
page 14 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 4.3 nec vr4102/vr4111 configuration the nec vr4102/vr4111 provides the internal address decoding necessary to map to an external lcd controller. physical address 0a000000h to 0affffffh (16m bytes) is reserved for an external lcd controller. the s1d13705 supports up to 80k bytes of display buffer memory and 32 bytes for internal registers. therefore, the s1d13705 will be shadowed over the entire 16m byte memory range at 128k byte segments. the starting address of the display buffer is 0a000000h and register 0 of the s1d13705 (reg[00h]) resides at 0a01ffe0h. the nec vr4102/vr4111 has a 16-bit internal register named bcucntreg2 located at address 0b000002h. it must be set to the value of 0001h to indicate that lcd controller accesses use a non-inverting data bus. the 16-bit internal register named bcucntreg1, located at address 0b000000h, must have bit d[13] (isa/lcd bit) set to 0 to reserve the 16m bytes space, 0a000000h to 0affffffh, for lcd use and not as isa bus memory space.
epson research and development page 15 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 5 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
page 16 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 6 references 6.1 documents  nec vr4102/vr4111 64/32-bit microprocessor preliminary user?s manual.  epson research and development, inc., s1d13705 embedded memory color lcd controller hardware functional specification ; document number x27a-a-001-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  nec website: http://www.nec.com.  epson electronics america website: http://www.eea.epson.com
epson research and development page 17 vancouver design center interfacing to the nec vr4102/vr4111 microprocessor s1d13705 issue date: 01/02/13 x27a-g-008-02 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 nec electronics inc. nec electronics inc. (u.s.a.) santa clara california tel: (800) 366-9782 fax: (800) 729-9288 http://www.nec.com japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 18 epson research and development vancouver design center s1d13705 interfacing to the nec vr4102/vr4111 microprocessor x27a-g-008-02 issue date: 01/02/13 this page left blank
s1d13705 embedded memory lcd controller interfacing to the pc card bus document number: x27a-g-009-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the pc card bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the pc card system bus . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 pc card overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 memory access cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 s1d13705 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 pc card to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 hardware connections . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 13 4.3 register/memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . 13 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 16 7.2 pc card standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
page 4 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4-2: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 2-1: pc card read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: pc card write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4-1: typical implementation of pc card to s1d13705 interface . . . . . . . . . . . . . . . . 12
page 6 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 1 introduction this application note describes the hardware and software environment required to interface the s1d13705 embedded memory lcd controller and the pc card (pcmcia) bus. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 2 interfacing to the pc card bus 2.1 the pc card system bus pc card technology has gained wide acceptance in the mobile computing field as well as in other markets due to its portability and ruggedness. this section is an overview of the operation of the 16-bit pc card interface conforming to the pcmcia 2.0/jeida 4.1 standard (or later). 2.1.1 pc card overview the 16-bit pc card provides a 26-bit address bus and additional control lines which allow access to three 64m byte address ranges. these ranges are used for common memory space, io space, and attribute memory space. common memory may be accessed by a host system for memory read and write operations. attribute memory is used for defining card specific information such as configuration registers, card capabilities, and card use. io space maintains software and hardware compatibility with hosts such as the intel x86 architecture, which address peripherals independently from memory space. bit notation follows the convention used by most microprocessors, the high bit is the most significant. therefore, signals a25 and d15 are the most significant bits for the address and data bus respectively. support is provided for on-chip dma controllers. to find further information on these topics, refer to section 6, ?references? on page 15. pc card bus signals are asynchronous to the host cpu bus signals. bus cycles are started with the assertion of either the ce1# and/or the ce2# card enable signals. the cycle ends once these signals are de-asserted. bus cycles can be lengthened using the wait# signal. note the pcmcia 2.0/jeida 4.1 (and later) pc card standard support the two signals wait# and reset which are not supported in earlier versions of the standard. the wait# signal allows for asynchronous data transfers for memory, attribute, and io ac- cess cycles. the reset signal allows resetting of the card configuration by the reset line of the host cpu. 2.1.2 memory access cycles a data transfer is initiated when the memory address is placed on the pc card bus and one, or both, of the card enable signals (ce1# and ce2#) are driven low. reg# must be kept inactive. if only ce1# is driven low, 8-bit data transfers are enabled and a0 specifies whether the even or odd data byte appears on data bus lines d[7:0]. if both ce1# and ce2# are driven low, a 16-bit word transfer takes place. if only ce2# is driven low, an odd byte transfer occurs on data lines d[15:8].
epson research and development page 9 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 during a read cycle, oe# (output enable) is driven low. a write cycle is specified by driving oe# high and driving the write enable signal (we#) low. the cycle can be lengthened by driving wait# low for the time needed to complete the cycle. figure 2-1: and figure 2-2: illustrate typical memory access cycles on the pc card bus. figure 2-1: pc card read cycle figure 2-2: pc card write cycle a[25:0] ce1# oe# wait# address valid data valid hi-z hi-z d[15:0] reg# ce2# transfer start transfer complete a[25:0] ce1# oe# wait# address valid data valid hi-z hi-z d[15:0] reg# ce2# transfer start transfer complete we#
page 10 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 3 s1d13705 bus interface this section is a summary of the host bus interface modes available on the s1d13705 that would be used to interface to the pc card bus. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode used for the pc card bus is:  generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). 3.1 host bus pin connection the following table shows the functions of the host bus interface signals. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #2 ab[15:1] a[15:1] ab0 a0 db[15:0] d[15:0] we1# bhe# cs# external decode bclk bclk bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we# wait# wait# reset# reset#
epson research and development page 11 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 3.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13705. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the pc card bus control signals. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we1# is the high byte enable for both read and write cycles.  we0# is the write enable for the s1d13705, to be driven low when the host cpu is writing data to the s1d13705.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
page 12 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 4 pc card to s1d13705 interface 4.1 hardware connections the s1d13705 is interfaced to the pc card bus with a minimal amount of glue logic. in this implementation, the address inputs (ab[16:0]) and data bus (db[15:0] connect directly to the cpu address (a[16:0]) and data bus (d[15:0]). the pc card interface does not provide a bus clock, so one must be supplied for the s1d13705. since the bus clock frequency is not critical, nor does it have to be synchronous to the bus signals, it may be the same as clki. bs# (bus start) is not used by generic #2 mode but is used to configure the s1d13705 for either generic #1 or generic #2 bus and should be tied high (connected to io v dd ). rd/wr# is also not used by generic #2 bus and should be tied high (connected to io v dd ). the following diagram shows a typical implementation of the pc card to s1d13705 interface. figure 4-1: typical implementation of pc card to s1d13705 interface rd/wr# rd# db[15:0] wait# busclk s1d13705 reset# ab[16:0] oe# d[15:0] wait# a[16:0] pc card socket 15k pull-up clki oscillator we1# we0# cs# we# ce1# ce2# reset io v dd bs# io v dd note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show only those configuration settings important to the pc card host bus interface. 4.3 register/memory mapping the s1d13705 is a memory mapped device. the s1d13705 memory may be addressed starting at 0000h, or on consecutive 128k byte blocks, and its internal registers are located in the upper 32 bytes of the 128k byte block (i.e. reg[0] = 1ffe0h). while the pc card socket provides 64m bytes of memory address space, the s1d13705 only needs a 128k byte block of memory to accommodate its 80k byte display buffer and its 32 byte register set. for this reason only address bits a[16:0] are used while a[25:17] are ignored. because the entire 64m bytes of memory is available, the s1d13705?s memory and registers will be aliased every 128k bytes for a total of 512 times. note if aliasing is not desirable, the upper addresses must be fully decoded. table 4-1: summary of power-on/reset options signal low high cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian = configuration for pc card host bus interface table 4-2: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 1 generic #2, 16-bit = configuration for pc card host bus interface
page 14 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 5 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
epson research and development page 15 vancouver design center interfacing to the pc card bus s1d13705 issue date: 01/02/13 x27a-g-009-02 6 references 6.1 documents  pc card (pcmcia) standard march 1997  epson research and development, inc., s1d13705 embedded memory color lcd controller hardware functional specification ; document number x27a-a-001-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  pc card website: http://www.pc-card.com.  epson electronics america website: http://www.eea.epson.com
page 16 epson research and development vancouver design center s1d13705 interfacing to the pc card bus x27a-g-009-02 issue date: 01/02/13 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 pc card standard japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com pcmcia (personal computer memory card international association) 2635 north first street, suite 209 san jose, ca 95134 tel: (408) 433-2273 fax: (408) 433-9558 http://www.pc-card.com
s1d13705 embedded memory lcd controller interfacing to the motorola mpc821 microprocessor document number: x27a-g-010-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mpc821 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mpc8xx system bus . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 mpc821 bus overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.1 normal (non-burst) bus transactions . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2.2 burst cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 memory controller module . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.1 general-purpose chip select module (gpcm) . . . . . . . . . . . . . . . . . . . . 11 2.3.2 user-programmable machine (upm) . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.1 host bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 generic #1 host bus interface mode . . . . . . . . . . . . . . . . . . . . . 14 4 mpc821 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2 mpc821ads evaluation board hardware connections . . . . . . . . . . . . . . 16 4.3 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 18 4.4 mpc821 chip select configuration . . . . . . . . . . . . . . . . . . . . . . 19 4.5 test software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.1 epson lcd/crt controllers (s1d13705) . . . . . . . . . . . . . . . . . . 24 7.2 motorola mpc821 processor . . . . . . . . . . . . . . . . . . . . . . . . 24
page 4 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4-1: list of connections from mpc821ads to s1d13705 . . . . . . . . . . . . . . . . . . 16 table 4-2: configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 table 4-3: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 list of figures figure 2-1: power pc memory read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: power pc memory write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 figure 4-1: typical implementation of mpc821 to s1d13705 interface . . . . . . . . . . . . . . . 15
page 6 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 1 introduction this application note describes the hardware and software environment required to interface the s1d13705 embedded memory lcd controller and the motorola mpc821 processor. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 2 interfacing to the mpc821 2.1 the mpc8xx system bus the mpc8xx family of processors feature a high-speed synchronous system bus typical of modern risc microprocessors. this section provides an overview of the operation of the cpu bus in order to establish interface requirements. 2.2 mpc821 bus overview the mpc8xx microprocessor family uses a synchronous address and data bus. all io is synchronous to a square-wave reference clock called mclk (master clock). this clock runs at the machine cycle speed of the cpu core (typically 25 to 50 mhz). most outputs from the processor change state on the rising edge of this clock. similarly, most inputs to the processor are sampled on the rising edge. note the external bus can run at one-half the cpu core speed using the clock control register. this is typically used when the cpu core is operated above 50 mhz. the mpc821 can generate up to eight independent chip select outputs, each of which may be controlled by one of two types of timing generators: the general purpose chip select module (gpcm) or the user-programmable machine (upm). examples are given using the gpcm. it should be noted that all power pc microprocessors, including the mpc8xx family, use bit notation opposite from the convention used by most other microprocessor systems. bit numbering for the mpc8xx always starts with zero as the most significant bit, and incre- ments in value to the least-significant bit. for example, the most significant bits of the address bus and data bus are a0 and d0, while the least significant bits are a31 and d31. the mpc8xx uses both a 32-bit address and data bus. a parity bit is supported for each of the four byte lanes on the data bus. parity checking is done when data is read from external memory or peripherals, and generated by the mpc8xx bus controller on write cycles. all io accesses are memory-mapped meaning there is no separate io space in the power pc architecture. support is provided for both on-chip (dma controllers) and off-chip (other processors and peripheral controllers) bus masters. for further information on this topic, refer to section 6, ?references? on page 23. the bus can support both normal and burst cycles. burst memory cycles are used to fill on-chip cache memory, and for certain on-chip dma operations. normal cycles are used for all other data transfers.
epson research and development page 9 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 2.2.1 normal (non-burst) bus transactions a data transfer is initiated by the bus master by placing the memory address on address lines a0 through a31 and driving ts (transfer start) low for one clock cycle. several control signals are also provided with the memory address:  tsiz[0:1] (transfer size) -- indicates whether the bus cycle is 8, 16, or 32-bit.  rd/wr -- set high for read cycles and low for write cycles.  at[0:3] (address type signals) -- provides more detail on the type of transfer being attempted. when the peripheral device being accessed has completed the bus transfer, it asserts ta (transfer acknowledge) for one clock cycle to complete the bus transaction. once ta has been asserted, the mpc821 will not start another bus cycle until ta has been de-asserted. the minimum length of a bus transaction is two bus clocks. figure 2-1: ?power pc memory read cycle? illustrates a typical memory read cycle on the power pc system bus. figure 2-1: power pc memory read cycle a[0:31] d[0:31] tsiz[0:1], at[0:3] ts ta sysclk wait states transfer start transfer next transfer sampled when ta low rd/wr complete starts
page 10 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 figure 2-2: ?power pc memory write cycle? illustrates a typical memory write cycle on the power pc system bus. figure 2-2: power pc memory write cycle if an error occurs, tea (transfer error acknowledge) is asserted and the bus cycle is aborted. for example, a peripheral device may assert tea if a parity error is detected, or the mpc821 bus controller may assert tea if no peripheral device responds at the addressed memory location within a bus time-out period. for 32-bit transfers, all data lines (d[0:31]) are used and the two low-order address lines a30 and a31 are ignored. for 16-bit transfers, data lines d0 through d15 are used and address line a30 is ignored. for 8-bit transfers, data lines d0 through d7 are used and all address lines (a[0:31]) are used. note this assumes that the power pc core is operating in big endian mode (typically the case for embedded systems). 2.2.2 burst cycles burst memory cycles are used to fill on-chip cache memory and to carry out certain on-chip dma operations. they are very similar to normal bus cycles with the following exceptions:  always 32-bit.  always attempt to transfer four 32-bit words sequentially.  always address longword-aligned memory (i.e. a30 and a31 are always 0:0).  do not increment address bits a28 and a29 between successive transfers; the addressed device must increment these address bits internally. a[0:31] d[0:31] tsiz[0:1], at[0:3] ts ta sysclk wait states transfer start rd/wr valid transfer next transfer complete starts
epson research and development page 11 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 if a peripheral is not capable of supporting burst cycles, it can assert burst inhibit (bi ) simultaneously with ta , and the processor will revert to normal bus cycles for the remaining data transfers. burst cycles are mainly intended to facilitate cache line fills from program or data memory. they are normally not used for transfers to/from io peripheral devices such as the s1d13705, therefore the interfaces described in this document do not attempt to support burst cycles. however, the example interfaces include circuitry to detect the assertion of bdip and respond with bi if caching is accidently enabled for the s1d13705 address space. 2.3 memory controller module 2.3.1 general-purpose ch ip select module (gpcm) the general-purpose chip select module (gpcm) is used to control memory and peripheral devices which do not require special timing or address multiplexing. in addition to the chip select output, it can generate active-low output enable (oe ) and write enable (we ) signals compatible with most memory and x86-style peripherals. the mpc821 bus controller also provides a read/write (rd/wr ) signal which is compatible with most 68k peripherals. the gpcm is controlled by the values programmed into the base register (br) and option register (or) of the respective chip select. the option register sets the base address, the block size of the chip select, and controls the following timing parameters:  the acs bit field allows the chip select assertion to be delayed with respect to the address bus valid, by 0, ?, or ? clock cycle.  the csnt bit causes chip select and we to be negated ? clock cycle earlier than normal.  the trlx (relaxed timing) bit will insert an additional one clock delay between asser- tion of the address bus and chip select. this accommodates memory and peripherals with long setup times.  the ehtr (extended hold time) bit will insert an additional 1-clock delay on the first access to a chip select.  up to 15 wait states may be inserted, or the peripheral can terminate the bus cycle itself by asserting ta (transfer acknowledge).  any chip select may be programmed to assert bi (burst inhibit) automatically when its memory space is addressed by the processor core.
page 12 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 2.3.2 user-programmable machine (upm) the upm is typically used to control memory types, such as dynamic rams, which have complex control or address multiplexing requirements. the upm is a general purpose ram-based pattern generator which can control address multiplexing, wait state gener- ation, and five general-purpose output lines on the mpc821. up to 64 pattern locations are available, each 32 bits wide. separate patterns may be programmed for normal accesses, burst accesses, refresh (timer) events, and exception conditions. this flexibility allows almost any type of memory or peripheral device to be accommodated by the mpc821. in this application note, the gpcm is used instead of the upm, since the gpcm has enough flexibility to accommodate the s1d13705 and it is desirable to leave the upm free to handle other interfacing duties, such as edo dram.
epson research and development page 13 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 3 s1d13705 host bus interface this section is a summary of the host bus interface mode used on the s1d13705 to interface to the mpc821. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode used for the mpc821 is:  generic #1 (chip select, plus individual read enable/write enable for each byte). 3.1 host bus interface modes for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #1 ab[15:1] a[15:1] ab0 a0 db[15:0] d[15:0] we1# we1# cs# external decode bclk bclk bs# connect to v ss rd/wr# rd1# rd# rd0# we0# we0# wait# wait# reset# reset#
page 14 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 3.2 generic #1 host bus interface mode generic #1 host bus interface mode is the most general and least processor-specific host bus interface mode on the s1d13705. the generic # 1 host bus interface mode was chosen for this interface due to the simplicity of its timing. the host bus interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 15 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 4 mpc821 to s1d13705 interface 4.1 hardware description the interface between the s1d13705 and the mpc821 requires minimal glue logic. one inverter is required to change the polarity of the wait# signal (an active low signal) to insert wait states in the bus cycle. the mpc821 transfer acknowledge signal (ta ) is an active low signal which ends the current bus cycle. the inverter is enabled using cs# so that ta is not driven by the s1d13705 during non-s1d13705 bus cycles. a single resistor is used to speed up the rise time of the wait# (ta ) signal when terminating the bus cycle. bs# (bus start) is not used in this implementation and should be tied low (connected to gnd). the following diagram shows a typical implementation of the mpc821 to s1d13705 interface. figure 4-1: typical implementation of mpc821 to s1d13705 interface mpc821 s1d13705 a[15:31] d[0:15] cs4 ta we0 we1 oe sysclk ab[16:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 470 bs# system reset note: when connecting the s1d13705 reset# pin, t he system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
page 16 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 4.2 mpc821ads evaluation board hardware connections the following table details the connections between the pins and signals of the mpc821 and the s1d13705. table 4-1: list of connections from mpc821ads to s1d13705 mpc821 signal name mpc821ads connector and pin name s1d13705 signal name vcc p6-a1, p6-b1 vcc a15 p6-d20 a16 a16 p6-b24 a15 a17 p6-c24 a14 a18 p6-d23 a13 a19 p6-d22 a12 a20 p6-d19 a11 a21 p6-a19 a10 a22 p6-d28 a9 a23 p6-a28 a8 a24 p6-c27 a7 a25 p6-a26 a6 a26 p6-c26 a5 a27 p6-a25 a4 a28 p6-d26 a3 a29 p6-b25 a2 a30 p6-b19 a1 a31 p6-d17 a0 d0 p12-a9 d15 d1 p12-c9 d14 d2 p12-d9 d13 d3 p12-a8 d12 d4 p12-b8 d11 d5 p12-d8 d10 d6 p12-b7 d9 d7 p12-c7 d8 d8 p12-a15 d7 d9 p12-c15 d6 d10 p12-d15 d5 d11 p12-a14 d4 d12 p12-b14 d3 d13 p12-d14 d2 d14 p12-b13 d1 d15 p12-c13 d0 sreset p9-d15 reset# sysclk p9-c2 busclk
epson research and development page 17 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 note the bit numbering of the power pc bus signals is reversed from the normal convention, e.g.: the most significant address bit is a0, the next is a1, a2, etc. cs4 p6-d13 cs# ta p6-b6 to inverter enabled by cs# wait# we0 p6-b15 we1# we1 p6-a14 we0# oe p6-b16 rd/wr#, rd# gnd p12-a1, p12-b1, p12-a2, p12-b2, p12-a3, p12-b3, p12-a4, p12-b4, p12-a5, p12-b5, p12-a6, p12-b6, p12-a7 vss table 4-1: list of connections from mpc821ads to s1d13705 (continued) mpc821 signal name mpc821ads connector and pin name s1d13705 signal name
page 18 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 4.3 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show only those configuration settings important to the mpc821 interface. the settings are very similar to the isa bus with the following exceptions:  the wait# signal is active high rather than active low.  the power pc is big endian rather than little endian. table 4-2: configuration settings signal low high cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian = configuration for mpc821 host bus interface table 4-3: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 0 generic #1, 16-bit = configuration for mpc821 host bus interface
epson research and development page 19 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 4.4 mpc821 chip select configuration the dram on the mpc821 ads board extends from address 0 through 3f ffffh, so the s1d13705 is addressed starting at 40 0000h. the s1d13705 uses a 128k byte segment of memory starting at this address, with the first 80k bytes used for the display buffer and the upper 32 bytes of this memory block used for the s1d13705 internal registers. chip select 4 is used to control the s1d13705. the following options are selected in the base address register (br4):  ba (0:16) = 0000 0000 0100 0000 0 ? set starting address of s1d13705 to 40 0000h  at (0:2) = 0 ? ignore address type bits  ps (0:1) = 1:0 ? memory port size is 16 bits  pare = 0 ? disable parity checking  wp = 0 ? disable write protect  ms (0:1) = 0:0 ? select general purpose chip select module to control this chip select  v = 1 ? set valid bit to enable chip select the following options were selected in the option register (or4):  am (0:16) = 1111 1111 1100 0000 0 ? mask all but upper 10 address bits; s1d13705 consumes 4m byte of address space  atm (0:2) = 0 ? ignore address type bits  csnt = 0 ? normal cs /we negation  acs (0:1) = 1:1 ? delay cs assertion by ? clock cycle from address lines  bi = 1 ? assert burst inhibit  scy (0:3) = 0 ? wait state selection; this field is ignored since external transfer acknowledge is used; see seta below  seta = 1 ? the s1d13705 generates an external transfer acknowledge using the wait# line  trlx = 0 ? normal timing  ehtr = 0 ? normal timing
page 20 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 4.5 test software the test software to exercise this interface is very simple. it configures chip select 4 on the mpc821 to map the s1d13705 to an unused 128k byte block of address space and loads the appropriate values into the option register for cs4. at that point the software runs in a tight loop reading the 13705 revision code register reg[00h], which allows monitoring of the bus timing on a logic analyzer. the source code for this test routine is as follows: br4 equ $120 ; cs4 base register or4 equ $124 ; cs4 option register memstart equ $40 ; upper word of s1d13705 start address revcodereg equ 1ffe0 ; address of revision code register start mfspr r1,immr ; get base address of internal registers andis. r1,r1,$ffff ; clear lower 16 bits to 0 andis. r2,r0,0 ; clear r2 oris r2,r2,memstart ; write base address ori r2,r2,$0801 ; port size 16 bits; select gpcm; enable stw r2,br4(r1) ; write value to base register andis. r2,r0,0 ; clear r2 oris r2,r2,$ffc0 ; address mask ? use upper 10 bits ori r2,r2,$0708 ; normal cs negation; delay cs ? clock; ; inhibit burst stw r2,or4(r1) ; write to option register andis. r1,r0,0 ; clear r1 oris r1,r1,memstart ; point r1 to start of s1d13705 mem space loop lbz r0,revcodereg(r1) ; read revision code into r1 b loop ; branch forever end
epson research and development page 21 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 this code was entered into the memory of the mpc821ads using the line-by-line assembler in mpc8bug, the debugger provided with the ads board. it was executed on the ads and a logic analyzer was used to verify operation of the interface hardware. note mpc8bug does not support comments or symbolic equates; these have been added for clarity. it is important to note that when the mpc821 comes out of reset, its on-chip caches and mmu are disabled. if the data cache is enabled, then the mmu must be set up so that the s1d13705 memory block is tagged as non-cacheable, to ensure that accesses to the s1d13705 will occur in proper order, and also to ensure that the mpc821 does not attempt to cache any data read from or written to the s1d13705 or its display buffer.
page 22 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 5 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
epson research and development page 23 vancouver design center interfacing to the motorola mpc821 microprocessor s1d13705 issue date: 01/02/13 x27a-g-010-02 6 references 6.1 documents  motorola inc., power pc mpc821 portable systems microprocessor user?s manual , motorola publication no. mpc821um/ad; available on the internet at http://www.mot.com/sps/adc/pps/_subpgs/_documentation/821/821um.html.  epson research and development, inc., s1d13705 embedded memory lcd controller hardware functional specification ; document number x27a-a-002-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  motorola inc. literature distribution center: (800) 441-2447.  motorola inc. website: http://www.mot.com.  epson electronics america website: http://www.eea.epson.com.
page 24 epson research and development vancouver design center s1d13705 interfacing to the motorola mpc821 microprocessor x27a-g-010-02 issue date: 01/02/13 7 technical support 7.1 epson lcd/crt controllers (s1d13705) 7.2 motorola mpc821 processor  motorola design line, (800) 521-6274.  local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
s1d13705 embedded memory lcd controller interfacing to the motorola mcf5307 "coldfire" microprocessor document number: x27a-g-011-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mcf5307 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mcf5307 system bus . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.1.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 normal (non-burst) bus transactions . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.3 burst cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3 s1d13705 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 mcf5307 to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 14 4.3 mcf5307 chip select configuration . . . . . . . . . . . . . . . . . . . . . 15 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 18 7.2 motorola mcf5307 processor . . . . . . . . . . . . . . . . . . . . . . . . 18
page 4 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4-2: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 list of figures figure 2-1: mcf5307 memory read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: mcf5307 memory write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4-1: typical implementation of mcf5307 to s1d13705 interface . . . . . . . . . . . . . . 13
page 6 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the motorola mcf5307 processor. the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 2 interfacing to the mcf5307 2.1 the mcf5307 system bus the mcf5200/5300 family of processors feature a high-speed synchronous system bus typical of modern microprocessors. this section is an overview of the operation of the cpu bus to establish interface requirements. 2.1.1 overview the mcf5307 microprocessor family uses a synchronous address and data bus, very similar in architecture to the mc68040 and mpc8xx. all outputs and inputs are timed with respect to a square-wave reference clock called bclk0 (master clock). this clock runs at a software-selectable divisor rate from the machine cycle speed of the cpu core, typically 20 to 33 mhz. both the address and the data bus are 32 bits in width. all io accesses are memory-mapped; there is no separate io space in the coldfire architecture. the bus can support two types of cycles, normal and burst. burst memory cycles are used to fill on-chip cache memories, and for certain on-chip dma operations. normal cycles are used for all other data transfers. 2.1.2 normal (non-burst) bus transactions a data transfer is initiated by the bus master by placing the memory address on address lines a31 through a0 and driving ts (transfer start) low for one clock cycle. several control signals are also provided with the memory address:  siz[1:0] (transfer size), which indicate whether the bus cycle is 8, 16, or 32 bits in width. r/w , which is high for read cycles and low for write cycles.  a set of transfer type signals (tt[1:0]) which provide more detail on the type of transfer being attempted. tip (transfer in progress), which is asserted whenever a bus cycle is active. when the peripheral device being accessed has completed the bus transfer, it asserts ta (transfer acknowledge) for one clock cycle, completing the bus transaction. once ta has been asserted, the mcf5307 will not start another bus cycle until ta has been de-asserted. the minimum length of a bus transaction is two bus clocks. figure 2-1 illustrates a typical memory read cycle on the mcf5307 system bus, and figure 2-2 illustrates a memory write cycle.
epson research and development page 9 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 figure 2-1: mcf5307 memory read cycle figure 2-2: mcf5307 memory write cycle 2.1.3 burst cycles burst cycles are very similar to normal cycles, except that they occur as a series of four back-to-back, 32-bit memory reads or writes, with the tip (transfer in progress) output asserted continuously through the burst. burst memory cycles are mainly intended to facil- itate cache line fill from program or data memory; they are typically not used for transfers to or from io peripheral devices such as the s1d13705. the mcf5307 chip selects provide a mechanism to disable burst accesses for peripheral devices which are not able to support them. a[31:0] d[31:0] siz[1:0], tt[1:0] ts ta bclk0 wait states transfer start transfer next transfer sampled when ta low r/w complete starts tip a[31:0] d[31:0] siz[1:0], tt[1:0] ts ta bclk0 wait states transfer start r/w valid transfer next transfer complete starts tip
page 10 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 2.2 chip-select module in addition to generating eight independent chip-select outputs, the mcf5307 chip select module can generate active-low output enable (oe ) and write enable (b we ) signals compatible with most memory and x86-style peripherals. the mcf5307 bus controller also provides a read/write (r/w ) signal which is compatible with most 68k peripherals. chip selects 0 and 1 can be programmed independently to respond to any base address and block size. chip select 0 can be active immediately after reset, and is typically used to control a boot rom. chip select 1 is likewise typically used to control a large static or dynamic ram block. chip selects 2 through 7 have fixed block sizes of 2m bytes each. each has a unique, fixed offset from a common, programmable starting address. these chip selects are well-suited to typical io addressing requirements. each chip select may be individually programmed for port size (8/16/32 bits), 0 to 15 wait states or external acknowledge, address space type, burst or non-burst cycle support, and write protect.
epson research and development page 11 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 3 s1d13705 bus interface this section is a summary of the host bus interface mode used on the s1d13705 to interface to the mcf5307. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode used for the mcf5307 is:  generic #1 (chip select, plus individual read enable/write enable for each byte). 3.1 host bus pin connection for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #1 ab[15:1] a[15:1] ab0 a0 db[15:0] d[15:0] we1# we1# cs# external decode bclk bclk bs# connect to v ss rd/wr# rd1# rd# rd0# we0# we0# wait# wait# reset# reset#
page 12 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 13 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 4 mcf5307 to s1d13705 interface 4.1 hardware description the s1d13705 is interfaced to the mcf5307 with a minimal amount of glue logic. one inverter is required to change the polarity of the wait# signal, which is an active low signal to insert wait states in the bus cycle, while the mcf5307?s transfer acknowledge signal (ta ) is an active low signal to end the current bus cycle. the inverter is enabled by cs# so that ta is not driven by the s1d13705 during non-s1d13705 bus cycles. a single resistor is used to speed up the rise time of the wait# (ta ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mcf5307 to s1d13705 interface. figure 4-1: typical implementation of mcf5307 to s1d13705 interface mcf5307 s1d13705 a[16:0] d[31:16] cs4 ta b we 1 b we 0 oe bclk0 ab[16:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 470 bs# system reset note: when connecting the s1d13705 reset# pin, t he system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
page 14 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. table 4-1: ?summary of power- on/reset options? and table 4-2: ?host bus interface selection? shows the settings used for the s1d13705 in this interface. table 4-1: summary of power-on/reset options s1d1370 5 pin name value on this pin at the rising edge of reset# is used to configure: (0/1) 01 cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian = configuration for mfc5307 support table 4-2: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 0 generic #1, 16-bit = configuration for mfc5307 support
epson research and development page 15 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 4.3 mcf5307 chip select configuration chip selects 0 and 1 have programmable block sizes from 64k bytes through 2g bytes. however, these chip selects would normally be needed to control system ram and rom. therefore, one of the io chip selects cs2 through cs7 is required to address the entire address space of the s1d13705. these io chip selects have a fixed, 2m byte block size. in the example interface, chip select 4 is used to control the s1d13705. the s1d13705 only uses a 128k byte block with its 80k byte display buffer residing at the start of this 128k byte block and its internal registers occupying the last 32 bytes of this block. this block of memory will be shadowed over the entire 2m byte space. the csbar register should be set to the upper 8 bits of the desired base address. the following options should be selected in the chip select mask registers (csmr4/5):  wp = 0 ? disable write protect  am = 0 - enable alternate bus master access to the s1d13705  c/i = 1 - disable cpu space access to the s1d13705  sc = 1 - disable supervisor code space access to the s1d13705  sd = 0 - enable supervisor data space access to the s1d13705  uc = 1 - disable user code space access to the s1d13705  ud = 0 - enable user data space access to the s1d13705  v = 1 - global enable (?valid?) for the chip select the following options should be selected in the chip select control registers (cscr4/5):  ws0-3 = 0 - no internal wait state setting  aa = 0 - no automatic acknowledgment  ps (1:0) = 1:0 ? memory port size is 16 bits  bem = 0 ? byte enable/write enable active on writes only  bstr = 0 ? disable burst reads  bstw = 0 ? disable burst writes
page 16 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 5 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
epson research and development page 17 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor s1d13705 issue date: 01/02/13 x27a-g-011-02 6 references 6.1 documents  motorola inc., mcf5307 coldfire? integrated microprocessor user?s manual , motorola publication no. mcf5307um/ad; available on the internet at http://www.mot.com/sps/hpesd/prod/coldfire/5307um.html.  epson research and development, inc., s1d13705 hardware functional specification ; document number x27a-a-002-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  motorola inc.: motorola literature distribution center, (800) 441-2447.  motorola website: http://www.mot.com.  epson electronics america website: http://www.eea.epson.com
page 18 epson research and development vancouver design center s1d13705 interfacing to the motorola mcf5307 "coldfire" microprocessor x27a-g-011-02 issue date: 01/02/13 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 motorola mcf5307 processor  motorola design line, (800) 521-6274.  local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
s1d13705 embedded memory lcd controller interfacing to the philips mips pr31500/pr31700 processor document number: x27a-g-012-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the pr31500/pr31700 . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 direct connection to the philips pr31500/pr31700 . . . . . . . . . . . . . . . . . 12 4.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . 1 3 4.3 s1d13705 configuration and pin mapping . . . . . . . . . . . . . . . . . . . 14 5 using the ite it8368e pc card buffer . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 it8368e configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.3 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . 1 7 5.4 s1d13705 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 20 7.2 philips mips pr31500/pr31700 processor . . . . . . . . . . . . . . . . . . . 20 7.3 ite it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
page 4 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: s1d13705 configuration for direct connection. . . . . . . . . . . . . . . . . . . . . . 14 table 5-1: pr31500/pr31700 to pc card slots address mapping with and without the it8368e . 17 table 5-2: s1d13705 configuration using the it8368e . . . . . . . . . . . . . . . . . . . . . . . 18 list of figures figure 4-1: s1d13705 to pr31500/pr31700 direct connection . . . . . . . . . . . . . . . . . . . 12 figure 5-1: s1d13705 to pr31500/pr31700 connection using an it8368e . . . . . . . . . . . . . 16
page 6 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the philips mips pr31500/pr31700 processor. the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 2 interfacing to the pr31500/pr31700 the philips mips pr31500/pr31700 processor supports up to two pc card (pcmcia) slots. it is through this host bus interface that the s1d13705 connects to the pr31500/pr31700 processor. the s1d13705 can be successfully interfaced using one of two configurations:  direct connection to pr31500/pr31700 (see section 4, direct connection to the philips pr31500/pr31700 on page 12).  system design using one ite it8368e pc card/gpio buffer chip (see section 5, using the ite it8368e pc card buffer on page 15).
epson research and development page 9 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that would be used to interface to the pr31500/pr31700. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface modes used for the pr31500/pr31700 are:  generic #1 (chip select, plus individual read enable/write enable for each byte).  generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). 3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #1 generic #2 ab[15:1] a[15:1] a[15:1] ab0 a0 a0 db[15:0] d[15:0] d[15:0] we1# we1# bhe# cs# external decode external decode bclk bclk bclk bs# connect to v ss connect to io v dd rd/wr# rd1# connect to io v dd rd# rd0# rd# we0# we0# we# wait# wait# wait# reset# reset# reset#
page 10 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the s1d13705. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals:  busclk is a clock input which is required by the s1d13705 host interface. it is sepa- rate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the s1d13705. these signals must be generated by external hardware based on the control outputs from the host cpu.  wait# is a signal output from the s1d13705 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the s1d13705 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 11 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 3.3 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13705. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the pr31500/pr31700 control signals. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we1# is the high byte enable for both read and write cycles.  we0# is the write enable signal for the s1d13705, to be driven low when the host cpu is writing data from the s1d13705.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13705 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
page 12 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 4 direct connection to the philips pr31500/pr31700 4.1 general description in this example implementation the s1d13705 occupies the pr31500/pr31700 pc card slot #1. the s1d13705 is easily interfaced to the pr31500/pr31700 with minimal additional logic. the address bus of the pr31500/pr31700 pc card interface is multiplexed and must be demultiplexed using an advanced cmos latch (e.g., 74ahc373). the direct connection approach makes use of the s1d13705 in its ?generic #2? interface configuration. the following diagram demonstrates a typical implementation of the interface. figure 4-1: s1d13705 to pr31500/pr31700 direct connection note see section 3.1 on page 9 and section 3.3 on page 11 for generic #2 pin descriptions. we0# rd# db[7:0] wait# bclk s1d13705 reset# ab[16:13] d[31:24] /card1wait a[12:0] pr31500/pr31700 pull-up oscillator we1# /card1csl /card1csh latch ale system reset /cardiowr /cardioread bs# rd/wr# +3.3v +3.3v endian db[15:8] d[23:16] ab[12:0] v dd dclkout ...or... cs# clki see text clock divider io v dd , core v dd +3.3v note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 the ?generic #2? host interface control signals of the s1d13705 are asynchronous with respect to the s1d13705 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired:  pixel and frame rates.  power budget. part count.  maximum s1d13705 clock frequencies. the s1d13705 also has internal clock dividers providing additional flexibility. 4.2 memory mapping and aliasing the s1d13705 requires an addressing space of 128k bytes. the on-chip display memory occupies the range 0 through 13fffh. the registers occupy the range 1ffe0h through 1ffffh. the pr31500/pr31700 demultiplexed address lines a17 and above are ignored, thus the s1d13705 is aliased 512 times at 128k byte intervals over the 64m byte pc card slot #1 memory space. in this example implementation, the pr31500/pr31700 control signal /cardreg is ignored; therefore the s1d13705 also takes up the entire pc card slot 1 configuration space. note if aliasing is undesirable, additional decoding circuitry must be added.
page 14 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 4.3 s1d13705 configuration and pin mapping the s1d13705 is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. the table below shows those configuration settings relevant to the direct connection approach. table 4-1: s1d13705 configuration for direct connection s1d13705 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for philips pr31500/pr31700 host bus interface
epson research and development page 15 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 5 using the ite it8368e pc card buffer if the system designer uses the ite it8368e pc card and multiple-function i/o buffer, the s1d13705 can be interfaced so that it ?shares? a pc card slot. the s1d13705 is mapped to a rarely-used 16m byte portion of the pc card slot buffered by the it8368e. this makes the s1d13705 virtually transparent to pc card devices that use the same slot. 5.1 hardware description the ite8368e has been specially designed to support epson lcd controllers. the ite it8368e provides eleven multi-function io pins (mfio). configuration registers may be used to allow these mfio pins to provide the control signals required to implement the s1d13705 cpu interface. the pr31500/pr31700 processor only provides addresses a[12:0]; therefore devices requiring more address space must use an external device to latch a[25:13]. the it8368e?s mfio pins can be configured to provide this latched address.
page 16 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 figure 5-1: s1d13705 to pr31500/pr31700 connection using an it8368e note see section 3.1 on page 9 and section 3.2 on page 10 for generic #1 pin descriptions. the ?generic #1? host interface control signals of the s1d13705 are asynchronous with respect to the s1d13705 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired:  pixel and frame rates.  power budget.  part count.  maximum s1d13705 clock frequencies. the s1d13705 also has internal clock dividers providing additional flexibility. it8368e s1d13705 ha[12:0] ab[12:0] hd[31:24] db[7:0] lha[23]/mfio[10] we1# we0# rd/wr# rd# cs# lha[22]/mfio[9] lha[21]/mfio[8] lha[20]/mfio[7] lha[19]/mfio[6] wait# /cardxwait reset# ab[16:13] pr31500/pr31700 hd[23:16] db[15:8] dclkout endian system reset lha[16:13]/ oscillator ...or... pull-up v dd bclk clki see text clock divider bs# io v dd , core v dd +3.3v mfio[3:0] note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 17 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 5.2 it8368e configuration the it8368e provides eleven multi-function io pins (mfio). the it8368e must have both ?fix attribute/io? and ?vga? modes on. when both these modes are enabled, the mfio pins provide control signals needed by the s1d13705 host bus interface, and a 16m byte portion of the system pc card attribute and io space is allocated to address the s1d13705. when accessing the s1d13705 the associated card-side signals are disabled in order to avoid any conflicts. for mapping details, refer to section 3.3: ?memory mapping and aliasing.? for connection details see figure 5-1: ?s1d13705 to pr31500/pr31700 connection using an it8368e,? on page 16 . for further information on the it8368e, refer to the it8368e pc card/gpio buffer chip specification . note when a second it8368e is used, that circuit should not be set in vga mode. 5.3 memory mapping and aliasing when the pr31500/pr31700 accesses the pc card slots without the ite it8368e, its system memory is mapped as in table 5-1: pr31500/pr31700 to pc card slots address mapping with and without the it8368e . note bit card1ioen or card2ioen, depending on which card slot is used, must to be set to 0 in the pr31500/pr31700 memory configuration register 3. when the pr31500/pr31700 accesses the pc card slots buffered through the ite it8368e, bits card1ioen and card2ioen are ignored and the attribute/io space of the pr31500/pr31700 is divided into attribute, i/o and s1d13705 access. table 5-1: pr31500/pr31700 to pc card slots address mapping with and without the it8368e provides all details of the attribute/io address reallocation by the it8368e. table 5-1: pr31500/pr31700 to pc card slots address mapping with and without the it8368e pc card slot # tx3912 address size using the ite it8368e direct connection, cardnioen=0 direct connection, cardnioen=1 1 0800 0000h 16m byte card 1 io s1d13705 (aliased 512 times at 128k byte intervals) card 1 io 0900 0000h 16m byte s1d13705 (aliased 128 times at 128k byte intervals) 0a00 0000h 32m byte card 1 attribute 6400 0000h 64m byte card 1 memory s1d13705 (aliased 512 times at 128k byte intervals) 2 0c00 0000h 16m byte card 2 io s1d13705 (aliased 512 times at 128k byte intervals) card 2 io 0d00 0000h 16m byte s1d13705 (aliased 128 times at 128k byte intervals) 0e00 0000h 32m byte card 2 attribute 6800 0000h 64m byte card 2 memory s1d13705 (aliased 512 times at 128k byte intervals)
page 18 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 5.4 s1d13705 configuration the s1d13705 is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. the table below shows those configuration settings relevant to this specific interface. table 5-2: s1d13705 configuration using the it8368e s1d13705 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for connection using ite it8368e
epson research and development page 19 vancouver design center interfacing to the philips mips pr31500/pr31700 processor s1d13705 issue date: 01/02/13 x27a-g-012-02 6 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1357cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or www.eea.epson.com.
page 20 epson research and development vancouver design center s1d13705 interfacing to the philips mips pr31500/pr31700 processor x27a-g-012-02 issue date: 01/02/13 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 philips mips pr31500/pr31700 processor 7.3 ite it8368e japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 philips semiconductors handheld computing group 4811 e. arques avenue m/s 42, p.o. box 3409 sunnyvale, ca 94088-3409 tel: (408) 991-2313 http://www.philips.com integrated technology express, inc. sales & marketing division 2710 walsh avenue santa clara, ca 95051, usa tel: (408) 980-8168 fax: (408) 980-9232 http://www.iteusa.com
s1d13704/5 embedded memory color lcd controller s5u13704/5 - tmpr3912/22u cpu module document number: x00a-g-004-02 copyright ? 1998, 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 this page left blank
epson research and development page 3 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2 s1d13704/5 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 3 tmpr3912/22u and s1d13704/5 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 hardware connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 s1d13704/5 configuration and pin mapping . . . . . . . . . . . . . . . . . . . . . . 11 4 cpu module description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 clock signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.1 busclk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.2 clki . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 lcd connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.1 50-pin lcd module connector, j3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.2 standard epson lcd connector, j4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3 lcd controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.1 s1d13704 vs. s1d13705 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.2 lcdpwr polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.3 s1d13704\75 chip select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
page 4 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 this page left blank
epson research and development page 5 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 list of tables table 3-1: s1d13704/5 configuration for generic #2 bus interface . . . . . . . . . . . . . . . . . . . . . . 11 table 3-2: s1d13704/5 generic #2 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 list of figures figure 3-1: s1d13704 to tmpr3912/22u interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
page 6 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 this page left blank
epson research and development page 7 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 1 introduction this manual describes the interface between the s1d13704/5 lcd controller (lcdc) and the tmpr3912/22u microprocessor as implemented on the toshiba 3912/22 and s1d13704/5 cpu module. this module is used in conjunction with the toshiba tx risc reference platform. for more information regarding the s1d13704 or s1d13705 refer to their respective hardware functional specification, document number x26a-a-001-xx and x27a-a-001-xx respectively. for more information regarding the tmpr3912/22u, refer to the tmpr3912/22u 32-bit mips risc processor user?s manual. see the toshiba website under semiconductors at http://toshiba.com/taec/nonflash/indexproducts.html. 1.1 general description the toshiba tx risc reference kit consists of 6 boards which include: a main board, a cpu board, a eprom board, a fmem board, a debug board, and an analog board. the main board acts as the motherboard for all the other add-on boards. in addition to these boards, there is an lcd module that connects to the cpu board. in order to support the add-on lcd panel that connects to the lcd module, the cpu board microprocessor must have an internal lcd controller or the cpu board must have an lcd controller on it that interfaces to the microprocessor. for the tmpr3912/22u microprocessor, the s1d13704 or s1d13705 lcdc is used to provide support for lcd panels. the lcdc is socketed so that it can be interchanged between the s1d13704 and the s1d13705. these controllers are very similar, with the main differences being the amount of embedded display memory and the lookup-table architecture (lut). the s1d13704 has 40k bytes of display memory and the s1d13705 has 80k bytes. the toshiba tmpr3912/22u processor supports two pc card (pcmcia) slots on the tx risc reference platform. the s1d13704 or s1d13705 lcd controller uses the pc card slot 1 to interface to the tmpr3912/22u, therefore, this slot is unavailable for use on the tx risc reference platform.
page 8 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 2 s1d13704/5 bus interface this section is summary of the bus interface modes available on the s1d13704 and s1d13705 lcdcs, and offers some detail on the generic #2 bus mode used to implement the interface to the tmpr3912/22u. 2.1 bus interface modes the s1d13704/5 implements a general-purpose 16-bit interface to the host microprocessor, which may operate in one of several modes compatible with most of the popular embedded microprocessor families. bus interface mode selections are made during reset by sampling the state of the configu- ration pins cnf[2:0] and the bs# line. table 5-1 in the s1d13704 or s1d13705 hardware functional specification details the values needed for the configuration pins and bs# to select the desired mode.
epson research and development page 9 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 2.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13704/5. the generic # 2 interface mode was chosen for this interface due to its compatibility with the pc card interface. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13704/5. busclk is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper memory address space.  we1# is the high byte enable for both read and write cycles and we0# is the enable signal for a write access. these must be generated by external decode hardware based upon the control outputs from the host cpu.  rd# is the read enable for the s1d13704/5, to be driven low when the host cpu is reading data from the s1d13704/5. rd# must be generated by external decode hard- ware based upon the control outputs from the host cpu.  wait# is a signal which is output from the s1d13704/5 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13704/5 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13704/5 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13704/5 for generic #2 mode and must be tied high (connected to iovdd = 3.3v). rd/wr# must also be tied high.
page 10 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 3 tmpr3912/22u and s1d13704/5 interface 3.1 hardware connections the s1d13704/5 occupies the tmpr3912/22u?s pc card slot #1. therefore, this slot cannot be used for other devices on the main board. the generic # 2 bus mode of the s1d13704/5 is used to interface to this pc card slot #1. the s1d13704/5 is interfaced to the tmpr3912/22u with minimal glue logic. since the address bus of the tmpr3912/22u is multiplexed, it is demultiplexed using an advanced cmos latch (74act373) to obtain the higher address bits needed for the s1d13704/5. the following diagram demonstrates the implementation of the interface. figure 3-1: s1d13704 to tmpr3912/22u interface we10# rd# db[7:0] wait# busclk s1d13704 reset# ab[15:13] d[31:24] card1wait* a[12:0] tmpr3912/22u 10k pull-up we1# card1csl* card1csh* latch ale system reset we* rd* bs# rd/wr# 3.3v 3.3v endian db[15:8] d[23:16] ab[12:0] 3.3v dclkout cs# clki or... clock divider io v dd , core v dd +3.3v / 2 clock divider / 2 oscillator
epson research and development page 11 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 3.2 memory ma pping and aliasing the s1d13704 requires an addressing space of 64k bytes while the s1d13705 requires 128k. the on-chip display memory occupies the range 0 through 9fffh. the registers occupy the range ffe0h through ffffh. the tmpr3912/22u demultiplexed address lines a16 and above are ignored if the s1d13704 is used, thus it is aliased 1024 times at 64k byte intervals over the 64m byte pc card slot #1 memory space. if the s1d13705 is used, address lines a17 and above are ignored; therefore the s1d13705 is aliased 512 times at 128k byte intervals. the tmpr3912/22u control signal cardreg# is ignored; therefore the s1d13704 also takes up the entire pc card slot #1 configuration space. note if aliasing is undesirable, additional decoding circuitry must be added. 3.3 s1d13704/5 confi guration and pin mapping the s1d13704/5 host bus interface is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. one additional configuration pin for the s1d13704, cnf4, is also used to set the polarity of the lcdpwr signal. the table below shows the configuration pin connections to configure the s1d13704/5 for use with the tmpr3912/22u microprocessor. when the s1d13704/5 is configured for generic #2 bus interface mode, the host interface pins are mapped as in the table below. table 3-1: s1d13704/5 configuration for generic #2 bus interface s1d13704 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for toshiba tmpr3912/22u host bus interface table 3-2: s1d13704/5 generic #2 interface pin mapping pin name pin function we1# bhe# bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we#
page 12 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 4 cpu module description this section will describe the various parts of the cpu module that pertain to the s1d13704/5 lcd controller. 4.1 clock signals 4.1.1 busclk because the bus clock for the s1d13704/5 does not need to be synchronous with the bus interface control signals, a lot of flexibility is available in the choice for busclk. in this cpu module, busclk is a divided by two version of the sdram clock signal, dclkout. since dclkout equals 73.728mhz, busclk = 36.864mhz. 4.1.2 clki the pixel clock for the s1d13704/5, clki, is also asynchronous with respect to the interface control signals. this clock is selected based upon panel frame rates, power vs performance budget, and maximum input frequencies. the maximum clki input is 25mhz if the internal clki/2 isn?t used, and if it is used the maximum input is 50mhz. on the cpu module, clki?s default input is a divided by four version of dclkout, which gives a clki = 18.432mhz. this frequency gives good performance for 320x240 resolution panels for both portrait and landscape modes. if power saving is desired, the clki can be reduced by using the internal clki/2 and the various pclk and mclk dividers for portrait mode. a socket for an external oscillator is also provided if a different frequency is required. this option is selected by positioning jumper jp8 in the 2 3 position and adding a standard 14- dip type oscillator in the socket u10. 4.2 lcd connectors 4.2.1 50-pin lcd module connector, j3 the standard connector used on toshiba?s cpu modules to connect to the lcd module is included in this cpu module. all twelve lcd data lines, fpdat[11:0], from the s1d13704/5, as well as the five video control signals, fpframe, fpshift, fpline, drdy, lcdpwr, are passed through this connector. through this connector, the s1d13704/5 supports monochrome and color stn panels up to a resolution of 640x480 as well as color tft/d-tft up to a resolution of 640x480. all touch panel signals from the main board have also been routed through this connector.
epson research and development page 13 vancouver design center s5u13704/5 - tmpr3912/22u cpu module issue date: 01/03/07 x00a-g-004-02 4.2.2 standard epson lcd connector, j4 a shrouded 40-pin header, j4, is also added to the cpu module to connect to lcd panels. this header is the standard lcd connector used on epson research and development evaluation boards and can be used to directly connect lcd panels to the s1d13704/5 controller. all lcd signals are buffered to allow 3.3v or 5.0v logic lcd panels to be connected. jumper, jp9, selects between these two types of panels. a positive power supply for panels requiring a positive bias voltage is supplied to header j4, by the lcd module through the 50-pin lcd module connector, j3. no negative power supply is available on the lcd module, therefore only panels which have their own bias voltage supply, or those that use a positive supply, can be connected to j4. the lcd module can only support these panels as well. header, j4, and its associated buffers and components have been left unpopulated on the cpu module. these parts can be added by the user if desired. 4.3 lcd controller 4.3.1 s1d13704 vs. s1d13705 the lcd controller used in conjunction with the tmpr3912/22u microprocessor can either be a s1d13704 or a s1d13705. if a s1d13704 is used, jumper jp7 must be set to position 1 2. this setting allows cnf4 to be configured for the s1d13704. cnf4 controls the polarity of the lcdpwr signal and can be set either high or low with jumper, jp11. if a s1d13705 is used, jumper jp7 must be set to position 2 3. this setting allows pin 45 of the lcdc to be used as address bit, ab16, which is needed on the s1d13705 to accom- modate the larger display memory . 4.3.2 lcdpwr polarity the power supply on the lcd module used lcdon, an active low signal to turn on the supply. this signal is connected to lcdpwr. since lcdpwr is configurable on the s1d13704 and is set active high on the s1d13705, a facility must be provided to invert this signal if it is active high so that lcdon will be the right polarity to turn on the lcd power supply. jumper, jp10 must be set to position 1 2 if lcdpwr is active low and to position 2 3 if lcdpwr is active high. 4.3.3 s1d13704\75 chip select minimal glue logic is used on the cpu module to provide the chip select signal, cs#, for the lcdc. a simple and gate activates the s1d13704/5 whenever the pc card slot #1 is accessed, whether it be memory space or attribute space.
page 14 epson research and development vancouver design center s5u13704/5 - tmpr3912/22u cpu module x00a-g-004-02 issue date: 01/03/07 this page left blank
s1d13705 embedded memory lcd controller interfacing to t he nec vr4181a? microprocessor document number: x27a-g-013-02 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 this page left blank
epson research and development page 3 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the nec vr4181a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the nec vr4181a system bus . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 lcd memory access signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 s1d13705 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 vr4181a to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 13 4.3 nec vr4181a configuration . . . . . . . . . . . . . . . . . . . . . . . . 1 4 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7.1 epson lcd controllers (s1d13705) . . . . . . . . . . . . . . . . . . . . . 17 7.2 nec electronics inc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
page 4 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 this page left blank
epson research and development page 5 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 4-1: typical implementation of vr4181a to s1d13705 interface . . . . . . . . . . . . . . . 12
page 6 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 this page left blank
epson research and development page 7 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 1 introduction this application note describes the hardware required to interface the s1d13705 embedded memory lcd controller and the nec vr4181a microprocessor. the nec vr4181a microprocessor is specifically designed to support an external lcd controller and the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 2 interfacing to the nec vr4181a 2.1 the nec vr4181a system bus the vr-series family of microprocessors features a high-speed synchronous system bus typical of modern microprocessors. designed with external lcd controller support and windows ce based embedded consumer applications in mind, the vr4181a offers a highly integrated solution for portable systems. this section is an overview of the operation of the cpu bus to establish interface requirements. 2.1.1 overview the nec vr4181a is designed around the risc architecture developed by mips. this microprocessor is designed around the 100mhz vr4110 cpu core which supports the mips iii and mips16 instruction sets. the cpu communicates with external devices via an isa interface. the nec vr4181a has direct support for an external lcd controller. a 64 to 512-kilobyte block of memory is assigned to the lcd controller with a dedicated chip select signal. word or byte accesses are controlled by the system high byte signal, #ube.
epson research and development page 9 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 2.1.2 lcd memory access signals the s1d13705 requires an addressing range of 128kbytes. when the vr4181a?s external lcd controller chip select signal is programmed to a window of that size, the s1d13705 must reside in the vr4181a physical address range of 133e 0000h to 133f ffffh which is part of the external isa memory space. the signals required for external lcd controller access are listed below and obey isa signalling rules.  a[16:0] address bus  #ube high byte enable (active low)  #lcdcs lcd controller (s1d13705) chip select (active low)  d[15:0] data bus  #memrd read command (active low)  #memwr write command (active low)  #memcs16 sixteen-bit peripheral capability acknowledge (active low)  iordy ready signal from s1d13705  sysclk optional, prescalable bus clock once an address in the lcd block of memory is accessed, the lcd chip select #lcdcs is driven low. the read or write enable signals, #memrd or #memwr, are driven low for the appropriate cycle and iordy is driven low by the s1d13705 to insert wait states into the cycle. the high byte enable is driven low for 16-bit transfers and high for 8-bit transfers.
page 10 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 3 s1d13705 host bus interface this section is a summary of the host bus interface modes available on the s1d13705 that would be used to interface to the vr4181a. the s1d13705 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the interface mode used for the vr4181a is:  generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). 3.1 host bus pin connection for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #2 ab[16:1] a[16:1] ab0 a0 db[15:0] d[15:0] we1# bhe# cs# external decode bclk bclk bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we# wait# wait# reset# reset#
epson research and development page 11 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 3.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the s1d13705. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the vr4181a control signals. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset.  chip select (cs#) is driven by decoding the high-order address lines to select the proper register and memory address space.  we1# is the high byte enable for both read and write cycles.  we0# is the write enable signal for the s1d13705, to be driven low when the host cpu is writing data from the s1d13705.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the s1d13705 internal registers or memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to iov dd ). rd/wr# should also be tied high.
page 12 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 4 vr4181a to s1d13705 interface 4.1 hardware description the nec vr4181a microprocessor is specifically designed to support an external lcd controller by providing the internal address decoding and control signals necessary. by using the generic # 2 interface, a glueless interface is achieved. the diagram below shows a typical implementation of the vr4181a to s1d13705 interface. figure 4-1: typical implementation of vr4181a to s1d13705 interface we1# we0# db[15:0] wait# rd# bclk s1d13705 cs# reset# ab[15:0] #ube #memwr d[15:0] #lcdcs #memrd iordy a[16:0] nec vr4181a pull-up bs# rd/wr# vcc vcc system reset oscillator #memcs16 note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
epson research and development page 13 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 the host interface control signals of the s1d13705 are asynchronous with respect to the s1d13705 bus clock. this gives the system designer full flexibility to choose the appro- priate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether an external or internal clock divider is needed, should be based on the desired:  pixel and frame rates.  power budget. part count.  maximum s1d13705 clock frequencies. the s1d13705 also has internal clock dividers providing additional flexibility. 4.2 s1d13705 hardware configuration the s1d13705 uses cnf3 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show those configuration settings important to the generic #2 host bus interface. table 4-1: summary of power-on/reset options signal value on this pin at the rising edge of reset# is used to configure: (0/1) 01 cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian = configuration for nec vr4181a support table 4-2: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 1 generic #2, 16-bit = configuration for nec vr4181a support
page 14 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 4.3 nec vr4181a configuration the nec vr4181a must be configured through its internal registers in order to map the s1d13705 to the external lcd controller space. the following register values must be set. register lcdgpmd at address 0b00 032eh must be set as follows.  bit 7 must be set to 1 to disable the internal lcd controller and enable the external lcd controller interface. this also maps pin shclk to #lcdcs and pin loclk to #memcs16.  bits [1:0] must be set to 01b to reserve 128kbytes of memory address range 133e 0000h to 133f ffffh for the external lcd controller. register gpmd2reg at address 0b00 0304h must be set as follows.  bits [9:8] (gp20md[1:0]) must be set to 11b to map pin gpio20 to #ube.  bits [5:4] (gp18md[1:0]) must be set to 01b to map pin gpio18 to iordy.
epson research and development page 15 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 5 software test utilities and windows? ce v2.0 display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
page 16 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 6 references 6.1 documents  nec vr4181a target specification, revision 0.5, 9/11/98  epson research and development, inc., s1d13705 hardware functional specification ; document number x27a-a-002-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x27a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x27a-g-002-xx. 6.2 document sources  nec website at http://www.nec.com.  epson electronics america website at http://www.eea.epson.com
epson research and development page 17 vancouver design center interfacing to the nec vr4181a? microprocessor s1d13705 issue date: 01/02/13 x27a-g-013-02 7 technical support 7.1 epson lcd controllers (s1d13705) 7.2 nec electronics inc. nec electronics inc. (u.s.a.) santa clara california tel: (800) 366-9782 fax: (800) 729-9288 http://www.nec.com japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 18 epson research and development vancouver design center s1d13705 interfacing to the nec vr4181a? microprocessor x27a-g-013-02 issue date: 01/02/13 this page left blank
s1d13705 embedded memory color lcd controller interfacing to an 8-bit processor document number: x27a-g-015-01 copyright ? 2001 epson research and development, inc. all rights reserved. information in this document is subject to change without notice . you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 this page left blank
epson research and development page 3 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to an 8-bit processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the generic 8-bit processor system bus . . . . . . . . . . . . . . . . . . . . . 8 3 s1d13705 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 8-bit processor to s1d13705 interface . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2 s1d13705 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 12 4.3 register/memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . 12 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 7.1 epson lcd/crt controllers (s1d13705) . . . . . . . . . . . . . . . . . . . 15
page 4 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 this page left blank
epson research and development page 5 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 4-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 list of figures figure 4-1: typical implementation of an 8-bit processor to the s1d13705 generic #2 interface . . 11
page 6 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 this page left blank
epson research and development page 7 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 1 introduction this application note describes the hardware environment required to provide an interface between the s1d13705 embedded memory lcd controller and a generic 8-bit micropro- cessor. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at documentation@erd.epson.com.
page 8 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 2 interfacing to an 8-bit processor 2.1 the generic 8-bit processor system bus although the s1d13705 does not directly support an 8-bit cpu, with minimal external logic an 8-bit interface can be achieved. typically, the bus of an 8-bit microprocessor is straight forward with minimal cpu and system control signals. to connect a memory mapped device such as the s1d13705, only the write, read, and wait control signals, as well as the data and address lines, need to be interfaced. since the s1d13705 is a 16-bit device, some external logic is required.
epson research and development page 9 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 3 s1d13705 bus interface this section is a summary of the host bus interface modes available on the s1d13705 and offers some detail on the generic #2 host bus interface used to implement the interface to an 8-bit processor. the s1d13705 provides a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the bus interface mode used in this example is:  generic #2 (this bus interface is isa-like and can easily be modified to support an 8-bit cpu). 3.1 host bus pin connection the following table shows the functions of each host bus interface signal. note if the cpu does not have address a16 all 80k bytes of embedded memory will not be accessible. for details on configuration, refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx. table 3-1: host bus interface pin mapping s1d13705 pin names generic #2 description ab[16:1] a[16:1] address [16:1] ab0 a0 address a0 db[15:0] d[15:0] data we1# bhe# byte high enable cs# external decode chip select bclk bclk bus clock bs# n/c must be tied to io v dd rd/wr# n/c must be tied to io v dd rd# rd# read we0# we# write wait# wait# reset# reset#
page 10 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 3.2 generic #2 interface mode generic #2 host bus interface is a general, non-processor specific interface mode on the s1d13705 that is ideally suited to interface to an 8-bit processor bus. the interface requires the following signals:  busclk is a clock input which synchronizes transfers between the host cpu and the s1d13705. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. if the host cpu bus does not provide this clock, an asynchronous clock can be provided.  the address inputs ab0 through ab16, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. note in an 8-bit environment d[7:0] must also be connected to db[15:8] respectively (i.e. d7 connects to both db15 and db7, d6 connects to both db14 and db6, d5 connects to both db13 and db5, etc.). see figure 4-1: ?typical implementation of an 8-bit proces- sor to the s1d13705 generic #2 interface? .  chip select (cs#) is driven by decoding the high-order address lines to select the proper memory address space.  bhe# (we1#) is the high byte enable for both read and write cycles. note in an 8-bit environment, this signal is driven by inverting address line a0 thus indicating that odd addresses are to be r/w on the high byte of the data bus.  we0# is the enable signal for a write access, to be driven low when the host cpu is writing the 1375 memory or registers.  rd# is the read enable for the s1d13705, to be driven low when the host cpu is reading data from the s1d13705.  wait# is a signal which is output from the s1d13705 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the s1d13705 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 1375 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high.  the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the s1d13705 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
epson research and development page 11 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 4 8-bit processor to s1d13705 interface 4.1 hardware description the interface between the s1d13705 and an 8-bit processor requires minimal glue logic. a decoder is used to generate the chip select for the s1d13705 based on where the s1d13705 is mapped into memory. alternatively, if the processor supports a chip select module, it can be programmed to generate a chip select for the s1d13705 without the need of an address decoder. an inverter inverts a0 to generate the byte high enable signal for the s1d13705. if the 8-bit host interface has an active high wait signal, it must be inverted as well. in order to support an 8-bit microprocessor with a 16-bit peripheral, the low and high order bytes of the data bus must be connected together. the following diagram shows a typical implementation of an 8-bit processor interfaced to the s1d13705. figure 4-1: typical implementation of an 8-bit processor to the s1d13705 generic #2 interface generic 8-bit bus s1d13705 a[16:1] d[7:0] decoder wait# we# rd# busclk ab[16:1] db[7:0] cs# wait# we0# rd# rd/wr# busclk reset# db[15:8] io v dd bs# bhe# (we1#) system reset note: when connecting the s1d13705 reset# pin, the system designer should be aware of all conditions that may reset the s1d13705 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states). a[0] ab[0]
page 12 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 4.2 s1d13705 hardware configuration the s1d13705 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the s1d13705 hardware functional specification , document number x27a-a-001-xx for details. the tables below show only those configuration settings important to the 8-bit processor interface. the endian must be selected based on the 8-bit processor used. 4.3 register/memory mapping the s1d13705 needs a 128k byte block of memory to accommodate its 80k byte display buffer and its 32 byte register set. the starting memory address is located at 00000h of the 128k byte memory block while the internal registers are located in the upper 32 bytes of this memory block. (i.e. reg[0]= 1ffe0h). an external decoder can be used to decode the address lines and generate a chip select for the s1d13705 whenever the selected 128k byte memory block is accessed. if the processor supports a general chip select module, its internal registers can be programmed to generate a chip select for the s1d13705 whenever the s1d13705 memory block is accessed. table 4-1: configuration settings signal low high cnf0 see ?host bus selection? table below see ?host bus selection? table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for 8-bit processor host bus interface table 4-2: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 1 generic #2, 16-bit = required configuration for this application.
epson research and development page 13 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 5 software test utilities and display drivers are available for the s1d13705. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 13705cfg. the display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the s1d13705 test utilities and display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
page 14 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 6 references 6.1 documents  epson research and development, inc., s1d13705 embedded memory lcd controller hardware functional specification ; document number x27a-a-002-xx.  epson research and development, inc., s5u13705b00c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx.  epson research and development, inc., s1d13705 programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources  epson reasearch and development website: http://www.eea.epson.com.
epson research and development page 15 vancouver design center interfacing to an 8-bit processor s1d13705 issue date: 01/12/20 x27a-g-015-01 7 technical support 7.1 epson lcd/crt controllers (s1d13705) japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp/ hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 http://www.epson.com.hk// taiwan epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan tel: 02-2717-7360 fax: 02-2712-9164 http://www.epson.com.tw/ singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 http://www.epson.com.sg/ europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 http://www.epson-electronics.de/ north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com/
page 16 epson research and development vancouver design center s1d13705 interfacing to an 8-bit processor x27a-g-015-01 issue date: 01/12/20 this page left blank


▲Up To Search▲   

 
Price & Availability of S1D13705F00A200

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X